[Python-Dev] PEP 409 and the stdlib

2013年5月20日 06:37:53 -0700

As a quick reminder, PEP 409 allows this:
 try:
 ...
 except AnError:
 raise SomeOtherError from None
so that if the exception is not caught, we get the traditional single exception 
traceback, instead of the new:
 During handling of the above exception, another exception occurred
My question:
How do we go about putting this in the stdlib? Is this one of the occasions where we don't do it unless we're modifying a module already for some other reason?
For that matter, should we?
Pros: Makes tracebacks much less confusing, especially coming from a library
Cons: Could hide bugs unrelated to what is being caught and transformed
--
~Ethan~
_______________________________________________
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

Reply via email to