Message83201
More two cents which I noticed. (After the patch was applied)
1. On windows, resize for anonymous map can clear its contents.
>>> import mmap
>>> m = mmap.mmap(-1, 10)
>>> m[:] = "0123456789"
>>> m[:]
'0123456789'
>>> m.resize(20)
>>> m[:]
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0'
2. Anonymous map on unix also has similar problem. ftruncate() fails for
fd == -1
Sorry for having clear solution for this. But I cannot say "This is what
mmap.resize should behave!". |
|
Date |
User |
Action |
Args |
2009-03-05 15:27:07 | ocean-city | set | recipients:
+ ocean-city, amaury.forgeotdarc, tim.golden, kmk, trent |
2009-03-05 15:27:07 | ocean-city | set | messageid: <1236266827.62.0.707434858821.issue2733@psf.upfronthosting.co.za> |
2009-03-05 15:27:06 | ocean-city | link | issue2733 messages |
2009-03-05 15:27:05 | ocean-city | create | |
|