We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d24cd1 commit b5acb15Copy full SHA for b5acb15
tests/snippets/int_subclass.py
@@ -0,0 +1,10 @@
1
+import dis
2
+
3
+class A(int):
4
+ def __init__(self):
5
+ self.x = "attr"
6
7
+a = A()
8
9
+assert 2 * a == 0
10
+assert a.x == "attr"
0 commit comments