[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

Petri Lehtinen report at bugs.python.org
Thu May 26 13:20:27 CEST 2011


Petri Lehtinen <petri at digip.org> added the comment:

> I'm not sure that it's the pythonic way to solve such problem. Can you work on a patch including a test?

Yeah, getattr() might be more Pythonic indeed.

How can this be tested? According to the initial report, exceptions raised in __del__ seem to be ignored.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12085>
_______________________________________


More information about the Python-bugs-list mailing list