Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23d9e26

Browse files
committed
Python: Fix name of class in example of __slots__ qhelp
1 parent dcb185b commit 23d9e26

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

python/ql/src/Classes/SlotsInOldStyleClass.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
2323
the slots list and saves space by not creating attribute dictionaries.</p>
2424

0 commit comments

Comments
 (0)