Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Last active March 19, 2018 20:42
Show Gist options
  • Save stepancheg/336fa5d5fe2d17f5301742f985be79dc to your computer and use it in GitHub Desktop.
Save stepancheg/336fa5d5fe2d17f5301742f985be79dc to your computer and use it in GitHub Desktop.
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