Nick Coghlan <ncogh...@gmail.com> added the comment:

As per Antoine's comment on #9873, requiring a real string via 
isinstance(source, str) to trigger the string IO version is likely to be 
cleaner than attempting to duck-type this. Strings are an area where we make so 
many assumptions about the way their internals work that duck-typing generally 
isn't all that effective.

----------

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

Reply via email to