[Python-Dev] Integer division transition

Fred L. Drake, Jr. fdrake@acm.org
Tue, 7 Nov 2000 18:17:10 -0500 (EST)

Paul Prescod writes:
 > I think that the standard Python compiler is the appropriate tool for
 > this sort of thing. Anything that can be caught "statically" might as
 > well be implemented right in the compiler (at least from the user's
 > point of view) rather than in a separate "deprecation nanny."

  For linting programs using the final specification, this fine.  I'm
thinking that a tool to read over people's sources and say "'div' is
used in 120 places out of 56K lines of code." would be helpful because
we could determine the extent of the effect of using "div" instead of
"//".  If there are a limited number of projects affected, it may be
entirely reasonable to find out that there aren't enough uses to worry
about, and it becomes acceptable to make it a keyword (like the other
textual infix operators).


Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Digital Creations