Last active
August 29, 2015 14:16
-
-
Save vi4m/ab296d0edfa641ebb10c to your computer and use it in GitHub Desktop.
exam-2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Write class Singleton. | |
| ====================== | |
| first_object = Singleton(name='test1') | |
| second_object = Singleton(name='test2') | |
| print(first_object.name == second_object.name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment