[issue23132] Faster total_ordering

Nick Coghlan report at bugs.python.org
Sun Jan 4 15:19:08 CET 2015


Nick Coghlan added the comment:

The metadata adjustments in Serhiy's patch had me thinking in terms of functools.wraps, but that rationale doesn't actually apply here (since the functions are only used in one place, and have a distinctive name rather than a generic one).

I'd also missed that the conversion to standalone module level functions inherently provides the same pickle compatibility benefit that Serhiy's patch did.

Accordingly, I agree that my suggested factory functions would make the code more complex for no benefit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23132>
_______________________________________


More information about the Python-bugs-list mailing list