Message263711
The sign of a NaN *is* fully supported, and easily accessible to those who need it. It just isn't part of the repr. Given that the sign is meaningless in the vast majority of applications, I think Python does the right thing here by leaving it out of the repr, rather than cluttering up the repr with meaningless and potentially confusing information.
I'll leave the last word to Stephen Canon, from the SO answer I linked to above:
" it is almost always a bug to attach meaning to the "sign bit" of a NaN datum." |
|
Date |
User |
Action |
Args |
2016-04-19 06:20:12 | mark.dickinson | set | recipients:
+ mark.dickinson, eric.smith, ahrvoje |
2016-04-19 06:20:12 | mark.dickinson | set | messageid: <1461046812.58.0.216068172964.issue26785@psf.upfronthosting.co.za> |
2016-04-19 06:20:12 | mark.dickinson | link | issue26785 messages |
2016-04-19 06:20:12 | mark.dickinson | create | |
|