Skip> try:
Skip> foo()
Skip> except TypeError with msg, KeyError with msg:
Skip> print msg
fuzz> Wasn't the proposal :
fuzz> try:
fuzz> something
fuzz> except NameError, OtherError as e:
fuzz> something...
I'm not sure. I only saw <SomeError> as|with <SomeValue>.
In your formulation the comma binds more tightly than the as keyword. In
import statements it's the other way around. That seems like it might be
a source of confusion.
Skip
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com