[New-bugs-announce] [issue3234] subprocess.py strips last character when raising an AttributeError
Martin Mokrejs
report at bugs.python.org
Sun Jun 29 11:17:26 CEST 2008
New submission from Martin Mokrejs <mmokrejs at users.sourceforge.net>:
I try to get working pipe emulation using Popen. I try to pass StringIO
object to p1.stdin of the first process and I got the following:
File "/usr/lib/python2.5/subprocess.py", line 587, in __init__
errread, errwrite) = self._get_handles(stdin, stdout, stderr)
File "/usr/lib/python2.5/subprocess.py", line 932, in _get_handles
p2cread = stdin.fileno()
AttributeError: 'cStringIO.StringI' object has no attribute 'fileno'
Aside from the fact I would hope that cStringIO could provide
self.fileno() I believe the error message should have been:
AttributeError: 'cStringIO.StringIO' object has no attribute 'fileno'
----------
components: Library (Lib)
messages: 68942
nosy: mmokrejs
severity: normal
status: open
title: subprocess.py strips last character when raising an AttributeError
type: crash
versions: Python 2.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3234>
_______________________________________
More information about the New-bugs-announce
mailing list