Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Nick Coghlan
On 28 Jun 2013 07:51, "Eric Snow" wrote: > > On Thu, Jun 27, 2013 at 9:35 AM, Ethan Furman wrote: > > On 06/27/2013 08:18 AM, Eric Snow wrote: > >> Good points. In either case there is no definition order available. > >> I'm okay with that. Would it be better to represent that as None (and > >>

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Nick Coghlan
On 28 Jun 2013 07:46, "PJ Eby" wrote: > > On Thu, Jun 27, 2013 at 4:48 AM, Nick Coghlan wrote: > > I'd be tempted to kill PEP 422 as not worth the hassle if we did this. > > I assume you mean the "namespace" keyword part of PEP 422, since PEP > 422's class initialization feature is entirely ortho

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Eric Snow
On Thu, Jun 27, 2013 at 9:35 AM, Ethan Furman wrote: > On 06/27/2013 08:18 AM, Eric Snow wrote: >> Good points. In either case there is no definition order available. >> I'm okay with that. Would it be better to represent that as None (and >> the attribute is always defined) or by having the att

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread PJ Eby
On Thu, Jun 27, 2013 at 4:48 AM, Nick Coghlan wrote: > I'd be tempted to kill PEP 422 as not worth the hassle if we did this. I assume you mean the "namespace" keyword part of PEP 422, since PEP 422's class initialization feature is entirely orthogonal to definition order or namespace customizati

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Ethan Furman
On 06/27/2013 08:18 AM, Eric Snow wrote: On Thu, Jun 27, 2013 at 2:48 AM, Nick Coghlan wrote: I think the main concern I would have is whether other implementations are happy they can provide a suitable ordered dictionary for class namespace execution. It's also worth considering what would ha

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Eric Snow
On Thu, Jun 27, 2013 at 2:48 AM, Nick Coghlan wrote: > I think the main concern I would have is whether other implementations > are happy they can provide a suitable ordered dictionary for class > namespace execution. > > It's also worth considering what would have to happen for dynamically > crea

Re: [Python-Dev] Classes with ordered namespaces

2013-06-27 Thread Nick Coghlan
On 27 June 2013 16:03, Eric Snow wrote: > There are two relevant class namespaces in this proposal: definition > namespace and __dict__. Currently both are dicts. > > For class definition namespaces, I'd like to make the default an > OrderedDict. With the implementation in issue16991, the change