[issue20905] Adapt heapq push/pop/replace to allow passing a comparator.

2019-12-22 Thread Michael Rolle
Michael Rolle added the comment: I realize this request is closed, but I hope people will still be reading this comment, and can perhaps either reopen it or submit a new request. I don't know how to submit a new request myself. ... I'd like to see (key=) capability someho

[issue28646] Using a read-only buffer.

2016-11-08 Thread Michael Rolle
New submission from Michael Rolle: Suggest that the _CData.from_buffer (source) method allow a read-only source as an argument, in which case any assignments to the object would raise some type of exception. If the source is shared with some writable object, then changes to said object would be

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2016-11-08 Thread Michael Rolle
Michael Rolle added the comment: As a separate issue, I'd like to find an appropriate package, other than ctypes, for interpreting data bytes in a consistently defined manner, independent of the platform I'm running on. The struct package is perfect where there are no bitfields inv

[issue20629] Python ctypes BigEndianStructure bitfield assignment misbehavior in Linux

2016-11-08 Thread Michael Rolle
Michael Rolle added the comment: Similar problem with 2.7.8 with cygwin. My example is: Python 2.7.8 (default, Jul 25 2014, 14:04:36) [GCC 4.8.3] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> from ctypes im