Skip to content

Instantly share code, notes, and snippets.

@MartinThoma
Created November 21, 2020 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinThoma/3e0b2d9e249ae743d3c9e5f81f722bd9 to your computer and use it in GitHub Desktop.
Save MartinThoma/3e0b2d9e249ae743d3c9e5f81f722bd9 to your computer and use it in GitHub Desktop.
print(min([1, 2, 3]))
def foo():
min = lambda n: "enclosing"
def bar():
"""Bar is enclosed by 'foo'"""
print(min([1, 2, 3]))
def baz():
"""Baz is also enclosed by 'foo'"""
min = lambda n: "local"
print(min([1, 2, 3]))
bar()
baz()
min = lambda n: "global"
print(min([1, 2, 3]))
foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment