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 benjamin.peterson, dw, hynek, kmike, pitrou, scoder, serhiy.storchaka, skrah, stutzbach
Date 2014-07-22.18:50:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406055001.58.0.80490630817.issue22003@psf.upfronthosting.co.za>
In-reply-to
Content
There's also the following code in numpy's getbuffer method:

    /*
     * If a read-only buffer is requested on a read-write array, we return a
     * read-write buffer, which is dubious behavior. But that's why this call
     * is guarded by PyArray_ISWRITEABLE rather than (flags &
     * PyBUF_WRITEABLE).
     */
    if (PyArray_ISWRITEABLE(self)) {
        if (array_might_be_written(self) < 0) {
            goto fail;
        }
    }

... which seems to imply that mmap is not the only one with "dubious behaviour" (?).
History
Date User Action Args
2014-07-22 18:50:01pitrousetrecipients: + pitrou, scoder, benjamin.peterson, stutzbach, skrah, hynek, dw, serhiy.storchaka, kmike
2014-07-22 18:50:01pitrousetmessageid: <1406055001.58.0.80490630817.issue22003@psf.upfronthosting.co.za>
2014-07-22 18:50:01pitroulinkissue22003 messages
2014-07-22 18:50:01pitroucreate