Comment on PEP-0238
Guido van Rossum
guido at python.org
Sun Jul 8 08:03:01 EDT 2001
"Terry Reedy" <tjreedy at home.com> writes:
> Another *STRONG* argument for replacing int / with another infix operator
> is the feasibility of revising the thousands of broken lines of code to run
> under 2.whatever. Any decent programming editor can do a 'find / and
> replace with xxx if I say yes' (which will require the reviser to examine
> the code to determine if / meant int div) but hardly any can do 'find / and
> examine the code on both sides to determine the strings that the
> interpreter will see as e1 and e2 and replace e1 / e2 with div(e1,e2) if I
> say yes'. Writing a special purpose update program would also be much
> easier.
This is a very good argument for a 'div' operator that I hadn't
thought of before!
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-list
mailing list