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 christian.heimes
Recipients christian.heimes, georg.brandl, zanella
Date 2008-02-24.22:32:36
SpamBayes Score 0.08159003
Marked as misclassified No
Message-id <1203892357.72.0.171119255331.issue1986@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2008-02-24 22:32:37christian.heimessetspambayes_score: 0.08159 -> 0.08159003
recipients: + christian.heimes, georg.brandl, zanella
2008-02-24 22:32:37christian.heimessetspambayes_score: 0.08159 -> 0.08159
messageid: <1203892357.72.0.171119255331.issue1986@psf.upfronthosting.co.za>
2008-02-24 22:32:36christian.heimeslinkissue1986 messages
2008-02-24 22:32:36christian.heimescreate