A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-September/146349.html below:

[Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered

[Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become ordered [Python-Dev] Python 3.6 dict becomes compact and gets a private version; and keywords become orderedVictor Stinner victor.stinner at gmail.com
Fri Sep 9 13:28:10 EDT 2016
2016-09-09 10:17 GMT-07:00 Guido van Rossum <guido at python.org>:
> - keyword args are ordered
> - the namespace passed to a metaclass is ordered by definition order
> - ditto for the class __dict__

Maybe we should define exactly "ordered" somewhere the language reference:
https://docs.python.org/dev/reference/index.html

I expect:

* a mapping: mapping ABC,
https://docs.python.org/dev/library/collections.abc.html#collections-abstract-base-classes
* ordered by definition order
* no more

I mean: OrderedDict has extra methods, __reversed__() and
move_to_end(). Users should not rely on them.

Victor
More information about the Python-Dev mailing list

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