Radical Suggestion for Integer Division Migration
David Bolen
db3l at fitlinxx.com
Mon Jul 30 15:12:40 EDT 2001
Carl Banks <idot at vt.edu> writes:
> Basically, have all integer division using the "/" operator throw an
> exception during the transition period, unless "from __future__ import
> division" appears in the module.
I'm definitely not in favor of this. What this does is essentially
move a hot cut date for backwards compatibility right to the very
first release that is built to transition to the new behavior. In
other words, it removes any possibility of a graceful transition with
older code. Sure warnings could be ignored, but that's the whole
point - you have some time during which you can ignore them but your
code keeps working, while you work to fix the issues.
--
-- David
--
/-----------------------------------------------------------------------\
\ David Bolen \ E-mail: db3l at fitlinxx.com /
| FitLinxx, Inc. \ Phone: (203) 708-5192 |
/ 860 Canal Street, Stamford, CT 06902 \ Fax: (203) 316-5150 \
\-----------------------------------------------------------------------/
More information about the Python-list
mailing list