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 ocean-city
Recipients ocean-city
Date 2009-02-28.11:02:26
SpamBayes Score 2.07593e-05
Marked as misclassified No
Message-id <1235818949.96.0.83052759976.issue5391@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2009-02-28 11:02:30ocean-citysetrecipients: + ocean-city
2009-02-28 11:02:29ocean-citysetmessageid: <1235818949.96.0.83052759976.issue5391@psf.upfronthosting.co.za>
2009-02-28 11:02:27ocean-citylinkissue5391 messages
2009-02-28 11:02:26ocean-citycreate