By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,767 Members | 1,332 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,767 IT Pros & Developers. It's quick & easy.

Bug? Certainly a new *behavior* from subprocess in 2.5 on Win32

P: n/a
I run the following script:
--
from subprocess import *
Popen("ls -l")
--
(yeah, I have ls.exe on Windows)

Under Python 2.4.2, this simply dumped the results of ls.exe to the
terminal--sorry, to the "command shell".

Under Python 2.5, both beta 1 and beta 2, it dumps the results to the
command shell, but *also* prints this:

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

Calling Popen() with a stdout = subprocess.PIPE does not throw this
exception.

I vaguely intimate that this is a bug, though surely a minor one.

Cheers,
/larry/

Jul 20 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.