Merge remote-tracking branch 'upstream/main' into python-dataflow-variable-capture

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-11-23 16:40:20 +01:00
538 changed files with 34573 additions and 28823 deletions

View File

@@ -0,0 +1,15 @@
def foo(foo_x): # $tracked
print("foo", foo_x) # $tracked
def bar(bar_x): # $tracked
print("bar", bar_x) # $tracked
if len(__file__) % 2 == 0:
f = foo
else:
f = bar
x = tracked # $tracked
f(x) # $tracked