[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Mark, could you consider to fill&send a contributor form agreement? http://www.python.org/psf/contrib/ -- ___ Python tracker ___ _

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: In fact, nested exception management in python 2 and python 3 actually diverges. BEWARE: (Python 3 does the right thing, once again :-) """ Python 2.7.3 (default, Apr 12 2012, 13:11:53) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" fo

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: http://stackoverflow.com/questions/8997431/is-there-any-way-to-access-nested-or-re-raised-exceptions-in-python """ This is known as Exception Chaining and is suported in Python 3. PEP 3134: http://www.python.org/dev/peps/pep-3134/ In Python 2, the old excepti

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python2 management should be something like: """ Python 2.7.3 (default, Apr 12 2012, 13:11:53) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> try : ... 1/0 ... except BaseException as e : ... try : ...

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Replace "except BaseException as e :" with just "except:". It was a remnant of my tests. -- ___ Python tracker ___ ___

[issue16278] os.rename documentation slightly inaccurate

2012-10-25 Thread Todd Rovito
Todd Rovito added the comment: Thanks for the feedback! Over the weekend I will make sure the documentation and test cases cover all possibilities. I have not worked with test suite but I will do my best. -- ___ Python tracker

[issue16327] subprocess.Popen leaks file descriptors on os.fork() failure

2012-10-25 Thread Charles-François Natali
Charles-François Natali added the comment: > No automated testing included because I'm not entirely sure how to replicate > this without eating up a ton of ram or doing something naughty with ulimit. Simply use RLIMIT_NPROC, from a subprocess: """ $ cat /tmp/test.py import subprocess ps = [ ]

[issue16271] weird dual behavior with changing __qualname__; different values observed through attribute and descriptor

2012-10-25 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a patch for 3.4. __qualname__ ought to have been implemented this way in the first place. I'll have to think about what can be done about 3.3. Maybe just the same fix without the removal of PyHeapType.ht_qualname. We can hope no one has written exten

<    1   2