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 tarek
Recipients tarek
Date 2010-04-12.23:56:51
SpamBayes Score 9.493829e-09
Marked as misclassified No
Message-id <1271116613.01.0.381000084861.issue8382@psf.upfronthosting.co.za>
In-reply-to
Content
Looks like the python version of StringIO can write tuples, but not the C version. I am not sure this is intended:

>>> from cStringIO import StringIO as cStringIO
>>> from StringIO import StringIO as StringIO
>>> string = StringIO()
>>> string.write(('my', 'tuple'))
>>> cstring = cStringIO()
>>> cstring.write(('my', 'tuple'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: write() argument 1 must be string or read-only character buffer, not tuple
History
Date User Action Args
2010-04-12 23:56:53tareksetrecipients: + tarek
2010-04-12 23:56:53tareksetmessageid: <1271116613.01.0.381000084861.issue8382@psf.upfronthosting.co.za>
2010-04-12 23:56:51tareklinkissue8382 messages
2010-04-12 23:56:51tarekcreate