Alternate numeric proposal
Skip Montanaro
skip at pobox.com
Mon Jul 23 14:48:50 EDT 2001
Chris> Why don't we add a hook to Python to control the numeric
Chris> evaluation rules directly?
Paul DuBois wrote a PEP on numeric kinds that seems to point in this
direction. Take a look at
http://python.sourceforge.net/peps/pep-0242.html
He doesn't directly address the int division thing, but does discuss having
some runtime control over some numeric properties. Perhaps this could be
extended to allow programmers to dictate the default result of int division
on a per-module basis.
--
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/
More information about the Python-list
mailing list