[issue8361] Remove assert in functools.total_ordering

Raymond Hettinger report at bugs.python.org
Sat Apr 10 18:44:40 CEST 2010


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

The max(roots) line that follows will raise its own ValueError when given an empty input.   Will mull over your patch.  I may just delete the assert line, leave it as-is, or apply something like your patch (but with a ValueError).

----------

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


More information about the Python-bugs-list mailing list