Posts
 
Reputation
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 #107.79K
~17.3K People Reached
Favorite Forums
Favorite Tags

1 Posted Topic

Member Avatar for katharnakh

[code=python] class Aclass: def __call__(self): print 'Hi I am __call__ed'; def __init__(self, *args, **keyargs): print "Hi I am __init__ed"; [/code] Here, executing x = Aclass() will call __init__() and just x() will call __call__(). Hope this helps :)

Member Avatar for snippsat
0
17K

The End.