D
David Isaac
Instances of MyClass have a method that
returns another instance. Ignoring the details
of why I might wish to do this, I could
return MyClass()
or
return self.__class__()
I like that latter better. Should I?
Should I do something else altogether?
Thanks,
Alan Isaac
returns another instance. Ignoring the details
of why I might wish to do this, I could
return MyClass()
or
return self.__class__()
I like that latter better. Should I?
Should I do something else altogether?
Thanks,
Alan Isaac