I would like to implement something like this:
class C1:
def __init__(self,x xx):
if ... :
self.foo = foo
self.bar = bar
else:
self=C1.load(xx x)
def load(xxx):
...
return instance_of_C1
load=staticmeth od(load)
This does not seem correct. How can I do it?
Thanks for any help
Paulo
class C1:
def __init__(self,x xx):
if ... :
self.foo = foo
self.bar = bar
else:
self=C1.load(xx x)
def load(xxx):
...
return instance_of_C1
load=staticmeth od(load)
This does not seem correct. How can I do it?
Thanks for any help
Paulo
Comment