Raymond Hettinger added the comment:

One other thought:  The OrderedEnum example should not use the total ordering 
decorator.  

To the extent that the docs are trying to teach how to use Enum, they should 
focus on that task and not make a side-trip into the world of class decorators. 
  And to the extent that the docs are trying to show an example of production 
code, it would be better for speed and ease of tracing through a debugger to 
just define all four ordering comparisons.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10042>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to