Skip to content

Instantly share code, notes, and snippets.

@aaronasterling
Created November 27, 2010 22:28
Show Gist options
  • Save aaronasterling/718346 to your computer and use it in GitHub Desktop.
Save aaronasterling/718346 to your computer and use it in GitHub Desktop.
def with_intern():
def a():
return 'foo'
def b():
return 'foo'
return a() is b()
print(with_intern()) # True
def with_no_intern():
def a():
return 'foo bar'
def b():
return 'foo bar'
return a() is b()
print(with_no_intern()) #False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment