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 therve
Recipients therve
Date 2008-02-14.14:40:02
SpamBayes Score 0.009538604
Marked as misclassified No
Message-id <1203000004.58.0.354729016159.issue2111@psf.upfronthosting.co.za>
In-reply-to
Content
Basically, the write method of mmap objects check the state with
is_writable, which check the writability with the access attributes. But
the mmap object can be opened correctly specifying the rights with
prot=mmap.PROt_READ.

Attached patch corrects the problem by setting access to ACCESS_READ
with prot is set to PROT_READ, with a test.
History
Date User Action Args
2008-02-14 14:40:04thervesetspambayes_score: 0.0095386 -> 0.009538604
recipients: + therve
2008-02-14 14:40:04thervesetspambayes_score: 0.0095386 -> 0.0095386
messageid: <1203000004.58.0.354729016159.issue2111@psf.upfronthosting.co.za>
2008-02-14 14:40:03thervelinkissue2111 messages
2008-02-14 14:40:02thervecreate