[Python-Dev] PEP 409 update [was: PEP 409 (original) (raw)
Yury Selivanov yselivanov.ml at gmail.com
Fri Feb 3 15:53:07 CET 2012
- Previous message: [Python-Dev] PEP 409 update [was: PEP 409 - final?]
- Next message: [Python-Dev] PEP 409 update [was: PEP 409 - final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Re "raise ValueError from ..."
So what does it mean now? Just resetting cause to make context printed? Can you show the down-to-earth snippet of code where such syntax would be useful?
Speaking of Zen of Python - I think this stuff contradicts with it more than it follows.
On 2012-02-02, at 10:43 PM, Ethan Furman wrote:
Tim Delaney wrote:
In that case, would the best syntax be: raise Exception() from Ellipsis or: raise Exception() from ... ? 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. raise Exception() from ... is... well, I am now gleeful -- especially since I went to my fresh copy of Python 3.3.0a0 and did this: --> ... Ellipsis --> raise ValueError from ... Traceback (most recent call last): File "", line 1, in ValueError Have I said lately how much I love Python?
Ethan
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/yselivanov.ml%40gmail.com
- Previous message: [Python-Dev] PEP 409 update [was: PEP 409 - final?]
- Next message: [Python-Dev] PEP 409 update [was: PEP 409 - final?]
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]