[New-bugs-announce] [issue1857] subprocess.Popen.poll/__del__ API breakage

René Stadler report at bugs.python.org
Thu Jan 17 12:30:58 CET 2008


New submission from René Stadler:

The commit to r45234 has added an internally used keyword attribute
named _deadstate to subprocess.Popen.poll, which is called by the
__del__ method of this class.  If you derived your own class from
subprocess.Popen that overrides .poll() without taking kwargs, the
__del__ method will trigger a TypeError about the unexpected keyword
argument.

Attached is a very simple test program that triggers the problem.  It
runs just fine with Python 2.4 however.

----------
components: Library (Lib)
files: subprocessapi.py
messages: 60024
nosy: rene.st
severity: major
status: open
title: subprocess.Popen.poll/__del__ API breakage
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file9190/subprocessapi.py

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1857>
__________________________________


More information about the New-bugs-announce mailing list