Set run vars with each call

Gnarlodious gnarlodious at
Tue Jul 12 19:32:12 CEST 2011

On Jul 12, 8:46 am, Alister Ware wrote:

> I thought that was the role of the __init__ function
> class Something:
>         def __init__(self):
>                 self.value="some value"

OK, that sets a value at init time. But is there a similar built-in to
run whenever the class instance is called?

-- Gnarlie

More information about the Python-list mailing list