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

2017-11-24 Thread Raymond Hettinger
Raymond Hettinger 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

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

2017-11-23 Thread R. David Murray
R. David Murray added the comment: The surprising thing is the behavior of NaN, which is *not equal* to itself. The statement about orderability says "...are ordered the same as their first unequal elements". This is explicit and unambiguous, there is no difference in

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

2017-11-22 Thread Dubslow
Dubslow added the comment: The PR includes an unrelated one word grammar fix in the same file, that can be removed (by me or by someone else, IDC). This is possibly backportable but I wouldn't know, and leave such decisions for someone who do. -- type: ->

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

2017-11-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +4451 stage: -> patch review ___ Python tracker ___

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

2017-11-22 Thread Dubslow
New submission from Dubslow : In sequence comparisons, the enforcement of reflexivity of elements means that only non-identical elements are actually compared. The docs then note, with example, that non-reflexive elements thus always "compare" equal inside the sequence.