problem with tabnanny

m3tr0 at m3tr0 at
Wed Sep 10 18:09:54 CEST 2003

Hi to all,

tabnanny module seems not to work (at least for me)   
Please write this two lines of code in a file (i called

#---------8<---- -------------
if 1:
print "error" 

#---------8<------ end -------

If I try
$ python
File "/home/pier/", line 2
    print "error"
IndentationError: expected an indented block

and this is correct. But the following
$ python /usr/lib/python2.2/ -v
'/home/pier/': Clean bill of health.

for tabnanny it's correct!?
I've tried this also with python 2.3 compiled from source
with the same results.

Any ideas
(Pease cc the mail to m3tr0 at

Best regards

Pier Carteri

This mail sent through IMP:

More information about the Python-list mailing list