[issue8382] cStringIO and StringIO doesn't behave the same way
Tarek Ziadé
report at bugs.python.org
Tue Apr 13 01:56:53 CEST 2010
New submission from Tarek Ziadé <ziade.tarek at gmail.com>:
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
----------
components: Library (Lib)
messages: 102991
nosy: tarek
severity: normal
status: open
title: cStringIO and StringIO doesn't behave the same way
type: behavior
versions: Python 2.6, Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8382>
_______________________________________
More information about the Python-bugs-list
mailing list