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.

Author ethan.furman
Recipients Rosuav, ethan.furman, jonathan.slenders, yselivanov
Date 2015-07-01.07:18:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435735090.85.0.0357187701852.issue24536@psf.upfronthosting.co.za>
In-reply-to
Content
As for Niki's example:
---------------------
--> src = os.pipe()
--> src
(3, 4)
--> if not hasattr(src, 'read'): src = open(src)
... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: invalid file: (3, 4)
------------------------------------------------

This fails now.  If they pass a pipe tuple into the new code they'll just get a different error somewhere else, which seems fine to me.
History
Date User Action Args
2015-07-01 07:18:10ethan.furmansetrecipients: + ethan.furman, Rosuav, yselivanov, jonathan.slenders
2015-07-01 07:18:10ethan.furmansetmessageid: <1435735090.85.0.0357187701852.issue24536@psf.upfronthosting.co.za>
2015-07-01 07:18:10ethan.furmanlinkissue24536 messages
2015-07-01 07:18:10ethan.furmancreate