Message139103
| 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 23351500)] 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:24 | ssbarnea | set | recipients:
+ ssbarnea, terry.reedy, r.david.murray |
| 2011年06月25日 17:10:24 | ssbarnea | set | messageid: <1309021824.57.0.469134753963.issue12398@psf.upfronthosting.co.za> |
| 2011年06月25日 17:10:24 | ssbarnea | link | issue12398 messages |
| 2011年06月25日 17:10:23 | ssbarnea | create |
|