Future division patch available (PEP 238)
Rob Hooft
rob at hooft.net
Mon Aug 20 05:07:41 EDT 2001
>>>>> "IP" == Ian Parker <parker at gol.com> writes:
IP> With script plus a little surrounding verbiage, my possibly
IP> affected 13 of 19 files scanned came up as:
IP> "19 .py files scanned, 4 affected with 9 instances of the
IP> division operator."
You're so lucky!
no203[105]nonius%3% python ~/finddiv.py **/*.py | wc
1328 3883 112957
no203[106]nonius%3% echo **/*.py | wc
1 304 6159
i.e. 1328 divisions in 304 python files.....
IP> Now that is much more reasonable, but it is still almost 25% of
IP> the modules, and I still, if I understand correctly, need to
IP> decide which ones should be integer division.
Exactly :-(
Rob
--
===== rob at hooft.net http://www.hooft.net/people/rob/ =====
===== R&D, Bruker Nonius BV, Delft http://www.nonius.nl/ =====
===== PGPid 0xFA19277D ================================= Use Linux! =========
More information about the Python-list
mailing list