[New-bugs-announce] [issue17517] StringIO() does not behave like cStringIO() when given an array object

Santoso Wijaya report at bugs.python.org
Fri Mar 22 02:50:42 CET 2013


New submission from Santoso Wijaya:

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import array, cStringIO, StringIO
>>> a = array.array('B', [1,2,3])
>>> cStringIO.StringIO(a).getvalue()
'\x01\x02\x03'
>>> StringIO.StringIO(a).getvalue()
"array('B', [1, 2, 3])"
>>>

----------
components: Library (Lib)
messages: 184939
nosy: santa4nt
priority: normal
severity: normal
status: open
title: StringIO() does not behave like cStringIO() when given an array object
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17517>
_______________________________________


More information about the New-bugs-announce mailing list