A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-January/070750.html below:

[Python-Dev] Fwd: Re: Floor division

[Python-Dev] Fwd: Re: Floor divisionpython at rcn.com python at rcn.com
Tue Jan 23 14:59:57 CET 2007
>> Do note that this discussion is only about Python 3.  Under the view
>> that it was a (minor, but real) design error to /try/ extending
>> Python's integer mod definition to floats, if __mod__, and __divmod__
>> and __floordiv__ go away for binary floats in P3K they should
>> certainly go away for decimal floats in P3K too.  And that's about
>> syntax, not functionality:  the IBM spec's "remainder" and
>> "remainder-near" still need to be there, it's "just" that a user would
>> have to get at "remainder" in a more long-winded way (analogous to

[Facundo Batista]
>We'll have to deprecate that functionality, with proper warnings (take
>not I'm not following the thread that discuss the migration path to 3k).
>
>And we'll have to add the method "remainder" to decimal objects (right
>now we have only "remainder_near" in decimal objects, and both
>"remainder" and "remainder_near" in context).

Whoa. This needs more discussion with respect to the decimal module.  I'm not ready to throw-out operator access to the methods provided by the spec.  Also, I do not want the Py2.x decimal module releases to be complexified and slowed-down by Py3.0 deprecation warnings.  The module is already slow and has ease-of-use issues.


Raymond
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4