[Python-Dev] decorate-sort-undecorate

Raymond Hettinger raymond.hettinger at verizon.net
Wed Oct 15 14:06:32 EDT 2003


If the discussion is wrapped up, I'm ready to commit the patch:
 www.python.org/sf/823292
Summary:
. Adds keyword arguments: cmp, key, reverse.
. Stable for any combination of arguments (including reverse).
. If key is not specified, then no wrapper is applied and nothing
 is changed (performance is unchanged).
. If cmp and key are specified, the wrapper is removed and the
 original key is passed to the cmp function (the wrapper is not
 visible to the user).
. Has unittests and docs. Passes the full test suite and repeated
 runs show stable refcounts.
Raymond Hettinger


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /