<div class="gmail_quote">On 3 February 2012 13:54, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, Feb 2, 2012 at 6:49 PM, Nick Coghlan <<a href="mailto:ncoghlan@gmail.com">ncoghlan@gmail.com</a>> wrote:<br>
> On Fri, Feb 3, 2012 at 12:42 PM, Ethan Furman <<a href="mailto:ethan@stoneleaf.us">ethan@stoneleaf.us</a>> wrote:<br>
>> Nick Coghlan wrote:<br>
>>><br>
>>> FWIW, I expect the implementation will *allow* "raise exc from<br>
>>> Ellipsis" as an odd synonym for "raise exc".<br>
>><br>
>><br>
>> Are we sure we want that? Raising from something not an exception seems<br>
>> counter-intuitive (None being the obvious exception).<br>
><br>
> It isn't so much a matter of wanting it as "Is it problematic enough<br>
> to put any effort into preventing it?" (since allowing it is a natural<br>
> outcome of the obvious implementation).<br>
<br>
</div>I would say yes we want that. It would be strange if you couldn't<br>
reset a variable explicitly to its default value.</blockquote><div><br></div><div>In that case, would the best syntax be:</div><div><br></div><div> raise Exception() from Ellipsis</div><div><br></div><div>or:</div><div>
<br></div><div> raise Exception() from ...</div><div><br></div><div>? I kinda like the second - it feels more self-descriptive to me than "from Ellipsis" - but there's the counter-argument that it could look like noise, and I think would require a grammar change to allow it there.</div>
<div><br></div><div>Tim Delaney</div></div>