Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
In the following program, I'M getting the following result.Could somebody tell me why? >>> class obdi(object): ... def _new_(self,nm='hechao'): ... self.name=nm ... print 'Create a class instance for ',nm ... def showname(self): ... print 'your name is ',self.name ... print 'my name is ',self._class_._name_ ... >>> foo=obdi() >>> foo.showname() your … |