This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Win32: subprocess.Popen() w/o "pipe" throws an exception
Type: Stage:
Components: Extension Modules Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, larry, tcdelaney
Priority: normal Keywords:

Created on 2006-07-21 00:10 by larry, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg29231 - (view) Author: Larry Hastings (larry) * (Python committer) Date: 2006-07-21 00:10
This is under Windows (XP).

I have a script which calls subprocess.Popen without
the "pipe=" argument, as so:

--
from subprocess import *
Popen("cmd.exe /c dir") 
--

If I run that with Python 2.5, it throws the following
exception:

Exception exceptions.AttributeError: "'NoneType' object
has no attribute 'append'" in <bound method
Popen.__del__ of <subprocess.Popen object at
0x00C04EB0>> ignored 

The same script run under Python 2.4(.2) does not throw
any exceptions.

Note that this happens with any call to
subprocess.Popen; what process you invoke seems irrelevant.
msg29232 - (view) Author: Tim Delaney (tcdelaney) Date: 2006-07-21 00:47
Logged In: YES 
user_id=603121

Kevin Jacobs reported it to python-dev with a possible 
patch in:

http://mail.python.org/pipermail/python-dev/2006-
July/067311.html
msg29233 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-21 06:00
Logged In: YES 
user_id=849994

This was fixed in rev. 50720.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43703
2006-07-21 00:10:01larrycreate