Message7412
Duplicates fixed Issue #1927.
>dist\bin\jython
Jython 2.7.0a2+ (, Aug 1 2012, 09:01:31)
[Java HotSpot(TM) 64-Bit Server VM (Sun Microsystems Inc.)] on java1.6.0_26
Type "help", "copyright", "credits" or "license" for more information.
>>> from io import BytesIO
>>> raw = "\x01\x02\x03\x04"
>>> raw == BytesIO(raw).read()
True
>>> raw
'\x01\x02\x03\x04'
>>> type(raw)
<type 'str'>
>>> quit()
It stemmed from confusion (mine) over str() and repr() in bytearray. Thanks for testing! |
|
Date |
User |
Action |
Args |
2012-08-18 06:20:45 | jeff.allen | set | messageid: <1345270845.07.0.112676085626.issue1959@psf.upfronthosting.co.za> |
2012-08-18 06:20:45 | jeff.allen | set | recipients:
+ jeff.allen, fwierzbicki, pjac, tiagoantao |
2012-08-18 06:20:44 | jeff.allen | link | issue1959 messages |
2012-08-18 06:20:44 | jeff.allen | create | |
|