Re: [Python-Dev] OrderedDict(kwargs) optimization?

2017年11月08日 17:53:01 -0800

> That'd be great for preserving kwargs' order after a pop() or a del?
To clarify, order is preserved after pop in Python 3.6 (and maybe 3.7).
There is discussion about breaking it to optimize for limited use cases,
but I don't think it's worth enough to discuss more until it demonstrates
real performance gain.
> Is there an opportunity to support a fast cast to OrderedDict from 3.6 dict?
> Can it just copy .keys() into the OrderedDict linked list?Or is there more 
> overhead to the transition?
https://bugs.python.org/issue31265
Regards,
INADA Naoki <[email protected]>
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to