Martin Panter added the comment: I propose this patch, based on Eryksun’s patch (thanks Eryksun). New changes:
* Added test case * Applied Serhiy’s review suggestion * Changed the new BufferError exceptions back to TypeError to match previous behaviour and test cases ---------- nosy: +eryksun Added file: http://bugs.python.org/file41009/ctypes_from_buffer_3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25498> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com