There are a number of ways to make it work (mostly). However, I'll defer to Raymond on how strictly OrderedDict should "subclass" from dict. -eric On Thu, Jun 23, 2016 at 9:26 AM, INADA Naoki <songofacandy at gmail.com> wrote: > On Fri, Jun 24, 2016 at 12:03 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote: >> On Mon, Jun 20, 2016 at 11:02 PM, INADA Naoki <songofacandy at gmail.com> wrote: >>> On Tue, Jun 21, 2016 at 12:17 PM, Oleg Broytman <phd at phdru.name> wrote: >>>> (if a PEP is needed at all) >>> >>> I don't think so. My PEP is not for changing Python Language, >>> just describe implementation detail. >>> >>> Python 3.5 has new OrderedDict implemented in C without PEP. >>> My patch is relatively small than it. And the idea has been well known. >> >> How about, for 3.6, target re-implementing OrderedDict using the >> compact dict approach (and leave dict alone for now). That way we >> have an extra release cycle to iron out the kinks before switching >> dict over for 3.7. :) >> >> -eric > > I can't. Since OrderedDict inherits dict. OrderedDict implementation > based on dict > implementation. > Since I'm not expert of Python object system, I don't know how to > separate OrderedDict > implementation from dict. > > > -- > INADA Naoki <songofacandy at gmail.com>
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4