Skip to content

Instantly share code, notes, and snippets.

@mohammadali66
Created September 13, 2022 19:04
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 mohammadali66/ffcba1c5675f606a0d6d1f41401fd085 to your computer and use it in GitHub Desktop.
Save mohammadali66/ffcba1c5675f606a0d6d1f41401fd085 to your computer and use it in GitHub Desktop.
class Person:
def __init__(self, name: Name):
self.name = name
def test_barry_is_harry():
harry = Person(Name("Harry", "Percival"))
barry = harry
barry.name = Name("Barry", "Percival")
assert harry is barry and barry is harry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment