Message82903
On Python3000, mmap.read_byte returns str not bytes, and mmap.write_byte
accepts str. Is this intended behavior?
>>> import mmap
>>> m = mmap.mmap(-1, 10)
>>> type(m.read_byte())
<class 'str'>
>>> m.write_byte("a")
>>> m.write_byte(b"a")
Maybe another possibility. read_byte() returns int which represents
byte, write_byte accepts int which represents byte. (Like b"abc"[0]
returns int not 1-length bytes) |
|
Date |
User |
Action |
Args |
2009-02-28 11:02:30 | ocean-city | set | recipients:
+ ocean-city |
2009-02-28 11:02:29 | ocean-city | set | messageid: <1235818949.96.0.83052759976.issue5391@psf.upfronthosting.co.za> |
2009-02-28 11:02:27 | ocean-city | link | issue5391 messages |
2009-02-28 11:02:26 | ocean-city | create | |
|