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 steve.dower
Recipients jnoller, pitrou, sbt, steve.dower, tim.golden, zach.ware
Date 2014-12-16.18:39:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1418755148.37.0.944597712753.issue23060@psf.upfronthosting.co.za>
In-reply-to
Content
That was actually my first hack and it also works. The fundamental problem here is that GetLastError() is not actually meant to indicate *whether* an error has occurred, but when one has occurred it describes what it was.

Indeed, in this case no error has occurred - CreateFileMapping was called and there is a file mapping available. OpenFileMapping is provided if an error is required when the mapping does not already exist.

The best option is definitely a separate method (or parameter) on mmap to open/raise rather than open/create. I may just comment out the assertion with a reference to this bug in the meantime, so that the buildbots aren't getting stuck every time.
History
Date User Action Args
2014-12-16 18:39:08steve.dowersetrecipients: + steve.dower, pitrou, tim.golden, jnoller, sbt, zach.ware
2014-12-16 18:39:08steve.dowersetmessageid: <1418755148.37.0.944597712753.issue23060@psf.upfronthosting.co.za>
2014-12-16 18:39:08steve.dowerlinkissue23060 messages
2014-12-16 18:39:08steve.dowercreate