Re: [Python-ideas] PEP 550 v2

2017-08-17 Thread Nick Coghlan
On 17 August 2017 at 02:36, Yury Selivanov wrote: > Yeah, this is tricky. The main issue is indeed the confusion of what > methods you need to call -- "get/set" or > "get_local_state/set_local_state". > > On some level the problem is very similar to regular Python scoping rules: > > 1. we have loc

Re: [Python-ideas] PEP 550 v2

2017-08-17 Thread Nick Coghlan
On 17 August 2017 at 04:38, Yury Selivanov wrote: > On Wed, Aug 16, 2017 at 1:13 PM, Stefan Krah wrote: > While I'm trying to avoid using scoping terminology for PEP 550, there's > one parallel -- as with regular Python scoping you have global variables > and you have local variables. > > You can

Re: [Python-ideas] PEP 550 v2

2017-08-17 Thread Nick Coghlan
On 17 August 2017 at 02:55, Yury Selivanov wrote: > And immediately after I hit "send" I realized that this is a bit more > complicated. > > In order for Tasks to remember the full execution context of where > they were created, we need a new method that would allow to run with > *both* exec and l

Re: [Python-ideas] PEP 550 v2

2017-08-17 Thread Nick Coghlan
On 17 August 2017 at 01:22, Yury Selivanov wrote: > On Wed, Aug 16, 2017 at 4:07 AM, Nick Coghlan wrote: >>> Coroutine Object Modifications >>> ^^ >>> >>> To achieve this, a small set of modifications to the coroutine object >>> is needed: >>> >>> * New ``cr_local_cont

Re: [Python-ideas] PEP 550 v2

2017-08-17 Thread Stefan Behnel
Nathaniel Smith schrieb am 16.08.2017 um 09:18: > On Tue, Aug 15, 2017 at 4:55 PM, Yury Selivanov wrote: >> Here's the PEP 550 version 2. > Awesome! +1 >> Backwards Compatibility >> === >> >> This proposal preserves 100% backwards compatibility. > > While this is mostly true