[Python-Dev] PEP 409 and the stdlib
Serhiy Storchaka
storchaka at gmail.com
Mon May 20 20:31:44 CEST 2013
More information about the Python-Dev mailing list
Mon May 20 20:31:44 CEST 2013
- Previous message: [Python-Dev] PEP 409 and the stdlib
- Next message: [Python-Dev] [Python-checkins] cpython (3.3): #17973: Add FAQ entry for ([], )[0] += [1] both extending and raising.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
20.05.13 16:12, Ethan Furman написав(ла): > 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? Usually I use "from None" in a new code when it hides irrelevant details. But in case of b32decode() (changeset 1b5ef05d6ced) I didn't do it. It's my fault, I'll fix it in next commit.
- Previous message: [Python-Dev] PEP 409 and the stdlib
- Next message: [Python-Dev] [Python-checkins] cpython (3.3): #17973: Add FAQ entry for ([], )[0] += [1] both extending and raising.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list