Skip Montanaro wrote: > My guess is that -tt triggered a SyntaxError (maybe we should create an > IndentationError that is a subclass of SyntaxError?) Paul Prescod writes: > +1 > > That would be great for newbies! Yes, but the name is confusing, because it isn't raised for every sort of indentation error if it's only used for tab/space problems: try: 1/0 1/0 finally: pass still would raise SyntaxError. Should that raise an IndentationError as well? Or should IndentationError be named something else? (Just adding IndentationError for -tt isn't hard, I have a preliminary patch for that now. Adding it for the case above looks harder.) -Fred -- Fred L. Drake, Jr. <fdrake at beopen.com> BeOpen PythonLabs Team Member
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4