Last active
December 20, 2015 15:09
-
-
Save mushfiq/6152195 to your computer and use it in GitHub Desktop.
Revisions
-
mushfiq renamed this gist
Aug 5, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mushfiq created this gist
Aug 4, 2013 .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,16 @@ class Ladder(object): def __init__(self): self.hight = 20 class Table(object): def __init__(self): self.legs = 4 my_factory = { "target1": Ladder, "target2": Table, } if __name__ == '__main__': print my_factory ["target1"]().hight