How to detect typos in Python programs

Bengt Richter bokr at oz.net
Fri Jul 25 23:00:12 EDT 2003


On 26 Jul 2003 01:54:19 GMT, bokr at oz.net (Bengt Richter) wrote:
[code that got += line switched. needs change to increment after conditional print:]

--- prtok.py~   Fri Jul 25 18:52:53 2003
+++ prtok.py    Fri Jul 25 19:58:24 2003
@@ -43,6 +43,6 @@
                     print header
                     header = None
                 print '%15s:%-3s'% (key, freq),
-                npr +=1
                 if npr%4==3: print
+                npr +=1
         print

Regards,
Bengt Richter




More information about the Python-list mailing list