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 ssbarnea
Recipients r.david.murray, ssbarnea, terry.reedy
Date 2011-06-25.17:10:23
SpamBayes Score 6.7928404e-08
Marked as misclassified No
Message-id <1309021824.57.0.469134753963.issue12398@psf.upfronthosting.co.za>
In-reply-to
Content
You are right, I debugged the problem a little more and discovered at least one bug in PyAMF.

Still, I was surprised to find out something very strange, it look that BytesIO.getvalue() does return `str` even if the documentation says it does return `bytes`. Should I file another bug?

Python 2.7.1 (r271:86832, Jun 13 2011, 14:28:51) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import io
>>> a = io.BytesIO()
>>> a
<_io.BytesIO object at 0x10f9453b0>
>>> a.getvalue()
''
>>> print type(a.getvalue())
<type 'str'>
>>>
History
Date User Action Args
2011-06-25 17:10:24ssbarneasetrecipients: + ssbarnea, terry.reedy, r.david.murray
2011-06-25 17:10:24ssbarneasetmessageid: <1309021824.57.0.469134753963.issue12398@psf.upfronthosting.co.za>
2011-06-25 17:10:24ssbarnealinkissue12398 messages
2011-06-25 17:10:23ssbarneacreate