Ethan Furman added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24536>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to