This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author belopolsky
Recipients Arfrever, alex, belopolsky, casevh, mark.dickinson, pitrou, rhettinger, skrah, tim.peters
Date 2014-09-22.19:40:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1411414843.09.0.670249390173.issue22444@psf.upfronthosting.co.za>
In-reply-to
Content
Mark,

Raymond suggested that "The PEP 3141 should be revised to say that floor division is defined to return a value that is *equal* to an Integral".

Since nan or inf are not *equal* to any Integral, the current implementation does not comply.  In the absence of a recommendation in the PEP, implementers of new numeric types are left with little guidance because existing types are inconsistent:

>>> Decimal('inf') // 1
Decimal('Infinity')
>>> float('inf') // 1
nan
History
Date User Action Args
2014-09-22 19:40:43belopolskysetrecipients: + belopolsky, tim.peters, rhettinger, mark.dickinson, pitrou, casevh, Arfrever, alex, skrah
2014-09-22 19:40:43belopolskysetmessageid: <1411414843.09.0.670249390173.issue22444@psf.upfronthosting.co.za>
2014-09-22 19:40:43belopolskylinkissue22444 messages
2014-09-22 19:40:42belopolskycreate