[issue3392] subprocess fails in select when descriptors are large

2009-03-31 Thread Mattias Engdegård
Mattias Engdegård added the comment: The patch looks all right in general. I would use something like if "poll" in dir(select) instead of catching AttributeError which risks hiding bugs in _communicate_with_poll(). PEP8 probably wants spaces around the bitwise-or operator. So

[issue1153622] eval does not bind variables in lambda bodies correctly

2009-02-16 Thread Mattias Engdegård
Mattias Engdegård added the comment: This is not a vague wish at all. The implementation is at odds with the documentation, and in fact nobody has been able to explain just how Python works or should work. Read msg24424 again - it all boils down to explaining why the variable x in def f(x

[issue3392] subprocess fails in select when descriptors are large

2008-09-22 Thread Mattias Engdegård
Mattias Engdegård <[EMAIL PROTECTED]> added the comment: As the comment in the original bug report said, you need to raise the file descriptor limit to something well above 2000 before running the test case. Needless to say, you may need to do that part as root in case that would excee

[issue3392] subprocess fails in select when descriptors are large

2008-07-17 Thread Mattias Engdegård
New submission from Mattias Engdegård <[EMAIL PROTECTED]>: If the stdin/out file descriptors are too large to be used with select(), subprocess will fail in .communicate(). Example: # raise the fd limit to something like 2048 before running this import subprocess somefiles = [open("