Commit c4faeea9 authored by Raymond Hettinger's avatar Raymond Hettinger

Fix nits

parent 15efcb6f
...@@ -1564,13 +1564,13 @@ to remember the order that class members were defined:: ...@@ -1564,13 +1564,13 @@ to remember the order that class members were defined::
>>> A.members >>> A.members
('__module__', 'one', 'two', 'three', 'four') ('__module__', 'one', 'two', 'three', 'four')
When the class definition for *A* get executed, the first step is calling the When the class definition for *A* gets executed, the process begins with
metaclass's :meth:`__prepare__` method which returns an empty calling the metaclass's :meth:`__prepare__` method which returns an empty
:class:`collections.OrderedDict`. That mapping records the methods and :class:`collections.OrderedDict`. That mapping records the methods and
attributes of *A* as they are defined within the body of the class statement. attributes of *A* as they are defined within the body of the class statement.
Once those definitions are executed, the ordered dict is fully populated, and Once those definitions are executed, the ordered dictionary is fully populated
then the metaclass's :meth:`__new__ ` method gets invoked. That method builds and the metaclass's :meth:`__new__ ` method gets invoked. That method builds
the new type and saves the keys for the ordered dictionary in an attribute the new type and it saves the ordered dictionary keys in an attribute
called *members*. called *members*.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment