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

Skip to content

Commit b94658f

Browse files
committed
Python: Highlight that __slots__ query is only for Python 2 in qhelp
Since I was already editing this file, it was easy to just add this extra bit of info.
1 parent 23d9e26 commit b94658f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ql/src/Classes/SlotsInOldStyleClass.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ 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>Point</code> class is an old-style class (no inheritance). The
19+
<p>In the following Python 2 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
2121
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

0 commit comments

Comments
 (0)