Hello,
I would like to do something like:
Is that posible in Python?
Thanks!
I would like to do something like:
class Hi(): def read(self): return 23 hi = Hi() val1 = Hi.read() val2 = HiI would like to associate the function
read()
or whatever returns when I do an equal from the object Hi. In the example val1
and val2
would have the same value.Is that posible in Python?
Thanks!