On Fri, Mar 17, 2006 at 07:44:51PM +0000, John J Lee wrote: > Perhaps parentheses around the exception list should be mandatory for the > 2-or-more exceptions case? > > except NameError as e: --> fine > except (NameError) as e: --> fine > except (NameError,) as e: --> fine > > except NameError, OtherError as e: --> SyntaxError > except (NameError, OtherError) as e: --> fine
If parens are mandatory what is the difference from the current syntax? Why do we need "as" here? Why not stay with except (NameError, OtherError), e: ??? Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com