[issue32118] Docs: add note about sequence comparisons containing non-orderable elements

Raymond Hettinger report at bugs.python.org
Fri Nov 24 17:48:20 EST 2017


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

This whole section has become a mess an is now more complex that the underlying code.   Adding more caveats, special cases, and atypical examples will make it worse (rather like the U.S. tax code, another example of bad technical writing).

I recommend the whole section be rewritten, extracting the most general rules and with examples that cover the general rules.

There can then be brief separate paragraphs for language lawyers that cover what makes NaNs and None unusual (none of the comparison logic special cases these value -- their interesting behaviors are intrinsic to the object itself).

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

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32118>
_______________________________________


More information about the Python-bugs-list mailing list