[issue17001] Make uuid.UUID use functools.total_ordering

Raymond Hettinger report at bugs.python.org
Sun Jan 20 22:12:24 CET 2013


Raymond Hettinger added the comment:

I recommend against this patch.  The code generated by functools.total_ordering is less efficient than the existing code and it doesn't handle the NotImplemented logic very well.

total_ordering() is a shortcut, not a best practice.

----------
nosy: +rhettinger

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


More information about the Python-bugs-list mailing list