Damien George
8 years ago
2 changed files with 9 additions and 13 deletions
@ -0,0 +1,9 @@ |
|||
# test using the name "super" as a local variable |
|||
|
|||
class A: |
|||
def foo(self): |
|||
super = [1, 2] |
|||
super.pop() |
|||
print(super) |
|||
|
|||
A().foo() |
@ -1,13 +0,0 @@ |
|||
""" |
|||
categories: Core,Classes |
|||
description: Bug when using "super" as a local |
|||
cause: Unknown |
|||
workaround: Unknown |
|||
""" |
|||
class A: |
|||
def foo(self): |
|||
super = [1] |
|||
super.pop() |
|||
print(super) |
|||
|
|||
A().foo() |
Loading…
Reference in new issue