• Brett Cannon's avatar
    subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to · 42a0ba7b
    Brett Cannon yazdı
    interpreter shutdown semantics. Same issue goes for the methods that __del__
    called. Now all the methods capture the global objects it needs as default
    values to private parameters (could have stuck them on the class object itself,
    but since the objects have nothing directly to do with the class that seemed
    wrong).
    
    There is no test as making one that works is hard. This patch was
    verified against a consistently failing test in Mercurial's test suite, though,
    so it has been tested in some regard.
    
    Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel
    Genellina for writing another patch for the same issue and attempting to write
    a test.
    42a0ba7b
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.bzrignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...