Last active
August 29, 2015 14:16
-
-
Save vi4m/ab296d0edfa641ebb10c to your computer and use it in GitHub Desktop.
Revisions
-
vi4m revised this gist
Mar 12, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ ## Write simple Singleton. Write Singleton which returns the same object every time. You can use the implementation you want. -
vi4m revised this gist
Mar 12, 2015 . 1 changed file with 5 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,9 @@ # Write simple Singleton. Write Singleton which returns the same object every time. You can use the implementation you want. ```python first_object = Singleton(name='test1') second_object = Singleton(name='test2') print(first_object.name == second_object.name) ``` -
vi4m renamed this gist
Mar 12, 2015 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ # Write simple Singleton. first_object = Singleton(name='test1') second_object = Singleton(name='test2') -
vi4m revised this gist
Mar 12, 2015 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,6 @@ Write class Singleton. ====================== first_object = Singleton(name='test1') second_object = Singleton(name='test2') print(first_object.name == second_object.name) -
vi4m created this gist
Mar 12, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ a1 = A(name='test1') a2 = A(name='test2') print(a1.name) print(a2.name)