Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-28 Thread Yury Selivanov
Big +1. Indeed, this whole Ellipsis approach is just an awful hack. - Yury On 2012-02-26, at 8:30 PM, Benjamin Peterson wrote: > PEP: 415 > Title: Implementing PEP 409 differently > Version: $Revision$ > Last-Modified: $Date$ > Author: Benjamin Peterson > Status: Draft > Type: Standards Track

Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-27 Thread Ethan Furman
Benjamin Peterson wrote: 2012/2/27 Ethan Furman : Benjamin Peterson wrote: 2012/2/26 Nick Coghlan : Thanks for writing that up. I'd be amenable if the PEP was clearly updated to say that ``raise exc from cause`` would change from being syntactic sugar for ``_hidden = exc; _hidden.__cause__ = c

Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-27 Thread Benjamin Peterson
2012/2/27 Ethan Furman : > Benjamin Peterson wrote: >> >> 2012/2/26 Nick Coghlan : >>> >>> Thanks for writing that up. I'd be amenable if the PEP was clearly >>> updated to say that ``raise exc from cause`` would change from being >>> syntactic sugar for ``_hidden = exc; _hidden.__cause__ = cause;

Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-27 Thread Ethan Furman
Benjamin Peterson wrote: 2012/2/26 Nick Coghlan : Thanks for writing that up. I'd be amenable if the PEP was clearly updated to say that ``raise exc from cause`` would change from being syntactic sugar for ``_hidden = exc; _hidden.__cause__ = cause; raise exc`` (as it is now) to ``_hidden = exc;

Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-27 Thread Benjamin Peterson
2012/2/26 Nick Coghlan : > Thanks for writing that up. I'd be amenable if the PEP was clearly > updated to say that ``raise exc from cause`` would change from being > syntactic sugar for ``_hidden = exc; _hidden.__cause__ = cause; raise > exc`` (as it is now) to ``_hidden = exc; _hidden.__cause__ =

Re: [Python-Dev] PEP 415: Implementing PEP 409 differently

2012-02-26 Thread Nick Coghlan
Thanks for writing that up. I'd be amenable if the PEP was clearly updated to say that ``raise exc from cause`` would change from being syntactic sugar for ``_hidden = exc; _hidden.__cause__ = cause; raise exc`` (as it is now) to ``_hidden = exc; _hidden.__cause__ = cause; _hidden.__suppress_contex