[Python-ideas] Re: Using 'with' with extra brackets for nicer indentation

2019-11-20 Thread Rhodri James
On 20/11/2019 15:28, Richard Damon wrote: On Nov 20, 2019, at 7:50 AM, Rhodri James wrote: As context managers, yes, lazy managers make chaining them easier because there's no mess to clean up if the chain breaks while you are creating it. On the other hand, eager managers like open() can b

[Python-ideas] Re: Using 'with' with extra brackets for nicer indentation

2019-11-20 Thread Richard Damon
> On Nov 20, 2019, at 7:50 AM, Rhodri James wrote: > > On 20/11/2019 01:57, Oscar Benjamin wrote: >>> On Tue, 19 Nov 2019 at 12:03, Paul Moore wrote: >>> On Tue, 19 Nov 2019 at 11:34, Oscar Benjamin wrote: >>> If I was to propose anything here it would not be to disallow any

[Python-ideas] Re: Using 'with' with extra brackets for nicer indentation

2019-11-20 Thread Rhodri James
On 20/11/2019 01:57, Oscar Benjamin wrote: On Tue, 19 Nov 2019 at 12:03, Paul Moore wrote: On Tue, 19 Nov 2019 at 11:34, Oscar Benjamin wrote: If I was to propose anything here it would not be to disallow anything that you can currently do with context managers. Rather the suggestion would

[Python-ideas] Re: Ability to set precedence of classdict (returned from __prepare__) for a metaclass type

2019-11-20 Thread Rhodri James
On 20/11/2019 08:25, Stephen J. Turnbull wrote: Rob Cliffe via Python-ideas writes: > I (and no doubt others) am less likely to engage with a thread if I > have to spend more time than necessary trying to understand it. You write as if that's a bad thing.;-) I consider that I often make t

[Python-ideas] Re: Ability to set precedence of classdict (returned from __prepare__) for a metaclass type

2019-11-20 Thread Stephen J. Turnbull
Rob Cliffe via Python-ideas writes: > I (and no doubt others) am less likely to engage with a thread if I > have to spend more time than necessary trying to understand it. You write as if that's a bad thing. ;-) I consider that I often make the largest contribution to this list by reading more