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 skrah
Recipients Thomas.Waldmann, skrah, xtreak
Date 2019-01-08.19:47:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546976873.59.0.0227161724848.issue35686@roundup.psfhosted.org>
In-reply-to
Content
Or, obviously:

with open(fn, 'rb') as fd:
    with mmap.mmap(fd.fileno(), 0, access=mmap.ACCESS_READ) as mm:
        with memoryview(mm)[:2] as data:
            print(data)
History
Date User Action Args
2019-01-08 19:47:54skrahsetrecipients: + skrah, Thomas.Waldmann, xtreak
2019-01-08 19:47:53skrahsetmessageid: <1546976873.59.0.0227161724848.issue35686@roundup.psfhosted.org>
2019-01-08 19:47:53skrahlinkissue35686 messages
2019-01-08 19:47:53skrahcreate