I've got a first draft patch (sans docs and tests) loaded at: www.python.org/sf/823292 The argument keywords are: cmpfunc, key, reverse The patch passes regression tests and a minimal set of basic functionality tests which need to be expanded considerably. I'll need to go back over this one in more detail to check: * Whether the code was inserted in the right place with respect to the existing anti-mutation code. * Is the strategy of decorating in-place too aggressive? Decoration consists of *replacing* each value x with (x, key(x)). * Verify reference counting and error handling. Raymond Hettinger
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4