IndentationError: unexpected indent

desktop fff at sss.com
Thu Jun 14 14:27:03 CEST 2007


I have this class:

class case(blop.case):
   def __init__(self, n, a, b):
     blop.case.__init__(self)
     print 'Monty Python's Flying Circus has a ' within it...'
     ...
     ...

But I get an error when I run the .py script from shell saying:

     print 'Monty Python's Flying Circus has a ' within it...'
     ^
IndentationError: unexpected indent

I have tried to indent the print statement 8 blanks but that does not 
help. Any hints?



More information about the Python-list mailing list