We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b7bbd0 commit 22161acCopy full SHA for 22161ac
1 file changed
tests/basics/class_super.py
@@ -34,3 +34,14 @@ def foo(self):
34
print(super().bar) # accessing attribute after super()
35
return super().foo().count(2) # calling a subsequent method
36
print(B().foo())
37
+
38
+# store/delete of super attribute not allowed
39
+assert hasattr(super(B, B()), 'foo')
40
+try:
41
+ super(B, B()).foo = 1
42
+except AttributeError:
43
+ print('AttributeError')
44
45
+ del super(B, B()).foo
46
47
0 commit comments