Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Yury Selivanov
On Mon, Oct 9, 2017 at 8:37 PM, Koos Zevenhoven wrote: [..] >> Another thing: suppose someone calls >> 'context_var.assign().__enter__()' manually, without calling >> '__exit__()'. You will have unbound growth of the context values >> stack. > > > You can cause unbound growth in PEP 550 too. All

Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Koos Zevenhoven
On Tue, Oct 10, 2017 at 1:55 AM, Yury Selivanov wrote: > On Mon, Oct 9, 2017 at 4:39 PM, Koos Zevenhoven wrote: > > On Mon, Oct 9, 2017 at 6:24 PM, Guido van Rossum > wrote: > [..] > >> I'm not sure I agree on the usefulness. Certainly a lot of the > complexity > >> of PEP 550 exists just to ca

Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Yury Selivanov
On Mon, Oct 9, 2017 at 4:39 PM, Koos Zevenhoven wrote: > On Mon, Oct 9, 2017 at 6:24 PM, Guido van Rossum wrote: [..] >> I'm not sure I agree on the usefulness. Certainly a lot of the complexity >> of PEP 550 exists just to cater to Nathaniel's desire to influence what a >> generator sees via the

Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Koos Zevenhoven
On Mon, Oct 9, 2017 at 6:24 PM, Guido van Rossum wrote: > On Sun, Oct 8, 2017 at 11:46 PM, Nick Coghlan wrote: > >> On 8 October 2017 at 08:40, Koos Zevenhoven wrote: >> >>> On Sun, Oct 8, 2017 at 12:16 AM, Nathaniel Smith wrote: >>> On Oct 7, 2017 12:20, "Koos Zevenhoven" wrote: >>

Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Koos Zevenhoven
On Mon, Oct 9, 2017 at 9:46 AM, Nick Coghlan wrote: > On 8 October 2017 at 08:40, Koos Zevenhoven wrote: > >> On Sun, Oct 8, 2017 at 12:16 AM, Nathaniel Smith wrote: >> >>> On Oct 7, 2017 12:20, "Koos Zevenhoven" wrote: >>> >>> >>> ​Unfortunately, we actually need a third kind of generator sem

Re: [Python-ideas] PEP draft: context variables

2017-10-09 Thread Guido van Rossum
On Sun, Oct 8, 2017 at 11:46 PM, Nick Coghlan wrote: > On 8 October 2017 at 08:40, Koos Zevenhoven wrote: > >> On Sun, Oct 8, 2017 at 12:16 AM, Nathaniel Smith wrote: >> >>> On Oct 7, 2017 12:20, "Koos Zevenhoven" wrote: >>> >>> >>> ​Unfortunately, we actually need a third kind of generator se

Re: [Python-ideas] Fwd: Fwd: A PEP to define basical metric which allows to guarantee minimal code quality

2017-10-09 Thread alexandre . galode
Hi, After some reflexion on this full thread, with all your arguments and discussion with my team, i have finally a better understanding on PEP finality. I saw that PEP 8 & 20 i used as example are "specials" PEP. So i let my idea here, and eventually, as previously suggested, i'll contact PY