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 pitrou
Recipients Nathan.Goldbaum, pitrou
Date 2020-02-21.10:04:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Well, in the mmap case, this is trivially fixed by writing:
with open("my_data.pkl", "r+b") as f_in:
    mm = mmap.mmap(f_in.fileno(), 0)


It will also be faster this way, since the pickle will be read directly from memory instead of going through read() calls.

This makes me think that perhaps this issue isn't as bad: it forces people to abandon bad idioms :-)
Date User Action Args
2020-02-21 10:04:16pitrousetrecipients: + pitrou, Nathan.Goldbaum
2020-02-21 10:04:16pitrousetmessageid: <>
2020-02-21 10:04:16pitroulinkissue39681 messages
2020-02-21 10:04:16pitroucreate