[Python-Dev] PEP 409 update [was: PEP 409 - final?]

Guido van Rossum guido at python.org
Fri Feb 3 19:20:31 CET 2012


On Fri, Feb 3, 2012 at 9:29 AM, Barry Warsaw <barry at python.org> wrote:
> On Feb 03, 2012, at 08:52 AM, Ethan Furman wrote:
>
>>Not sure I'll ever use it this way, but:
>>
>>try:
>>   try:
>>     raise IndexError()
>>   except:
>>     raise CustomError() from None
>>except CustomError as e:
>>   # nevermind, let's see the whole thing after all
>>   raise e from Ellipsis
>
> In that context, I have to say that the last line, even if it were written
>
>    raise e from ...
>
> is certainly cute, but not very informative.

Please. Let's stop this. There is no known use case to ever write
that. We're just not putting specific measures to prevent it. Writing

>>> a = ...

Is likewise cute but not very informative. But it is valid syntax.

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list