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 serhiy.storchaka
Recipients berker.peksag, serhiy.storchaka, twouters, ztane
Date 2016-04-15.10:47:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1460717242.01.0.91615310387.issue26358@psf.upfronthosting.co.za>
In-reply-to
Content
Iterating a slice produces ints too (a slice is just a bytes object).

>>> import mmap, sys
>>> with open(sys.executable, 'rb') as f:
...     mm = mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ)
...     print(next(iter(mm)))
...     print(next(iter(mm[:10])))
... 
b'\x7f'
127

Seems this module taken little love when migrated to 3.0.
History
Date User Action Args
2016-04-15 10:47:22serhiy.storchakasetrecipients: + serhiy.storchaka, twouters, berker.peksag, ztane
2016-04-15 10:47:22serhiy.storchakasetmessageid: <1460717242.01.0.91615310387.issue26358@psf.upfronthosting.co.za>
2016-04-15 10:47:21serhiy.storchakalinkissue26358 messages
2016-04-15 10:47:21serhiy.storchakacreate