On Fri, Feb 3, 2012 at 9:29 AM, Barry Warsaw <ba...@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)
_______________________________________________
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

Reply via email to