File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ You can convert an old-style class to a new-style class by inheriting from <code
1616
1717</recommendation >
1818<example >
19- <p >In the following example the <code >KeyedRef </code > class is an old-style class (no inheritance). The
19+ <p >In the following example the <code >Point </code > class is an old-style class (no inheritance). The
2020<code >__slots__</code > declaration in this class creates a class attribute called <code >__slots__</code >, the class
21- dictionary is unaffected. The <code >KeyedRef2 </code > class is a new-style class so the
21+ dictionary is unaffected. The <code >Point2 </code > class is a new-style class so the
2222<code >__slots__</code > declaration causes special compact attributes to be created for each name in
2323the slots list and saves space by not creating attribute dictionaries.</p >
2424
You can’t perform that action at this time.
0 commit comments