New submission from Martin Mokrejs <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3234>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to