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

Yury Selivanov yselivanov.ml at gmail.com
Fri Feb 3 19:00:45 CET 2012


;)

I completely understand what Ellipsis object and its short syntax (...) is.   
And for me 'raise from Ellipsis' or 'raise from ...', or even using the 
Ellipsis object internally instead of special __NoContext__ object is 
godawful.

Why do we want to use some completely unrelated singleton in the exception 
contexts?  Is the policy of "think before adding a new builtin object" 
really worth it in this concrete case?

On 2012-02-03, at 1:01 PM, Ethan Furman wrote:

> Yury Selivanov wrote:
>> I got it, and I think it's fine to use explicit __cause__ reset,
>> using Ellipsis, or even some __NoException__ special object if we decide to introduce one.
>> I'm against allowing 'from ...' syntax.
> 
> Well, ... /is/ Ellipsis -- no way to tell them apart by them time this part of the code sees it.
> 
> ~Ethan~



More information about the Python-Dev mailing list