Last active
March 19, 2018 20:42
-
-
Save stepancheg/336fa5d5fe2d17f5301742f985be79dc 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
def foo(): | |
a = [] | |
b = [] | |
c = [] | |
def aa(): | |
# This works | |
a.append(1) | |
def bb(): | |
# This doesn't | |
b += [1] | |
def cc(): | |
# This doesn't work either | |
c.append(1) | |
if False: | |
c += [2] | |
aa() | |
bb() | |
cc() | |
foo() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment