Pythonのio.BytesIO.getvalue()
がバイトの代わりにstrを返すのは普通ですか?Pythonのio.BytesIO.getvalue()がバイトの代わりにstrを返すのは普通ですか?
Python 2.7.1 (r271:86832, Jun 13 2011, 14:28:51)
>>> import io
>>> a = io.BytesIO()
>>> a
<_io.BytesIO object at 0x10f9453b0>
>>> a.getvalue()
''
>>> print type(a.getvalue())
<type 'str'>
>>>
私はバグを報告する必要がありますか?
OMFG、そして、私はhttp://dev.pyamf.org/ticket/823のようなバグをどのように解決することができるのでしょうか?後で(Firefoxのhttplibで)それは私のデータをユニコード文字列に追加しようとします。 – sorin