Message263471
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. |
|
Date |
User |
Action |
Args |
2016-04-15 10:47:22 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, twouters, berker.peksag, ztane |
2016-04-15 10:47:22 | serhiy.storchaka | set | messageid: <1460717242.01.0.91615310387.issue26358@psf.upfronthosting.co.za> |
2016-04-15 10:47:21 | serhiy.storchaka | link | issue26358 messages |
2016-04-15 10:47:21 | serhiy.storchaka | create | |
|