IndentationError: unexpected indent
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? -- http://mail.python.org/mailman/listinfo/python-list
bitwise shift?
I have found a code example with this loop. for k in range(10, 25): n = 1 << k; I have never read Python before but is it correct that 1 get multiplied with the numbers 10,11,12,12,...,25 assuming that 1 << k means "1 shift left by k" which is the same as multiplying with k. -- http://mail.python.org/mailman/listinfo/python-list
