Christian Heimes added the comment:

In Python 2.x StringIO.StringIO calls str() on its arguments:

>>> StringIO.StringIO(1).read()
'1'
>>> StringIO.StringIO(object).read()
"<type 'object'>"
>>> str(object)
"<type 'object'>"

io.StringIO has the same behavior:
>>> io.StringIO(1).read()
'1'
>>> io.StringIO(object).read()
"<type 'object'>"

Georg, what's the bug here?

----------
nosy: +tiran

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1986>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to