Message9231
 
            
            
            
 
   
   
 
  | That's odd. It works perfectly well when the source is a file, but not at the console. It is not sensitive to whether I use TAB or spaces.
>>> try:
...     print 1/0
... except ZeroDivisionError, e:
...     print "Ha!", e
...
Ha! integer division or modulo by zero
>>> try:
...     print 1/0
... except ZeroDivisionError as e:
  File "<stdin>", line 3
    except ZeroDivisionError as e:
                                 ^
SyntaxError: mismatched input '<EOF>' expecting INDENT
And the error message is strangely irrelevant. |  |
 
| Date | User | Action | Args |  | 2014-12-13 10:31:17 | jeff.allen | set | messageid: <1418466677.32.0.948825270279.issue2236@psf.upfronthosting.co.za> |  | 2014-12-13 10:31:17 | jeff.allen | set | recipients:
  + jeff.allen |  | 2014-12-13 10:31:17 | jeff.allen | link | issue2236 messages |  | 2014-12-13 10:31:16 | jeff.allen | create |  | 
 |