Set run vars with each call

Gnarlodious gnarlodious at gmail.com
Tue Jul 12 13:32:12 EDT 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

AltStyle によって変換されたページ (->オリジナル) /