Message82307
I noticed following code crashes. I'll post fix soon.
import mmap
import os
def main():
align = mmap.ALLOCATIONGRANULARITY
path = os.path.splitext(__file__)[0] + ".txt"
with open(path, "w") as f:
f.write("0" * align)
f.write("1" * align)
f.write("2" * align)
with open(path, "r+") as f:
m = mmap.mmap(f.fileno(), align)
m[align] # crash
m[align] = '1' # crash too
if __name__ == '__main__':
main() |
|
| Date |
User |
Action |
Args |
| 2009-02-17 09:35:57 | ocean-city | set | recipients:
+ ocean-city |
| 2009-02-17 09:35:57 | ocean-city | set | messageid: <1234863357.35.0.195202793383.issue5292@psf.upfronthosting.co.za> |
| 2009-02-17 09:35:55 | ocean-city | link | issue5292 messages |
| 2009-02-17 09:35:55 | ocean-city | create | |
|