init inside def
targetsmart at gmail.com
Mon Oct 25 12:05:01 CEST 2010
today I just came across a python code snippet where __init__ was
defined inside a function..
I am not able to understand the reason why
The code snippet was similar like
if a == b:
So far I have seen __init__ only used inside class definitions not
inside any function, could somebody tell me how __init__ can be useful
inside a function definition..?
More information about the Python-list