2016-09-09 10:17 GMT-07:00 Guido van Rossum <gu...@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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
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