On Jun 7, 2016 8:52 PM, "Eric Snow" <ericsnowcurren...@gmail.com> wrote: > * the default class *definition* namespace is now ``OrderdDict`` > * the order in which class attributes are defined is preserved in the
By using an OrderedDict, names are ordered by first definition point, rather than location of the used definition. For example, the definition order of the following will be "x, y", even though the definitions actually bound to the name are in order "y, x". class C: x = 0 def y(self): return 'y' def x(self): return 'x' Is that okay?
_______________________________________________ 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