Created
October 29, 2022 16:39
-
-
Save infnetdanpro/2eb0474f36d48e7a42f2729d642d8ce4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class A: | |
attr =1 | |
a = A() | |
# a.attr (1) | |
def test(a): | |
a.attr = 2 | |
test(a) | |
# a.attr (now changed to 2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment