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 amaury.forgeotdarc, kmk, ocean-city, tim.golden, trent
Date 2009-03-05.15:27:05
SpamBayes Score 5.488943e-07
Marked as misclassified No
Message-id <1236266827.62.0.707434858821.issue2733@psf.upfronthosting.co.za>
In-reply-to
Content
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!".
History
Date User Action Args
2009-03-05 15:27:07ocean-citysetrecipients: + ocean-city, amaury.forgeotdarc, tim.golden, kmk, trent
2009-03-05 15:27:07ocean-citysetmessageid: <1236266827.62.0.707434858821.issue2733@psf.upfronthosting.co.za>
2009-03-05 15:27:06ocean-citylinkissue2733 messages
2009-03-05 15:27:05ocean-citycreate