Prev: External Hashing [was Re: matching strings in a large set ofstrings]
Next: Inheritable computed class attributes?
From: Thomas Allen on 30 Apr 2010 15:47 Is that possible? class A(object): @staticmethod def set_b(x): # A.b = x, without knowing A is "A" pass Thomas
From: Thomas Allen on 30 Apr 2010 15:52
Ah ha, @classmethod. On Apr 30, 3:47 pm, Thomas Allen <thomasmal...(a)gmail.com> wrote: > Is that possible? > > class A(object): > @staticmethod > def set_b(x): > # A.b = x, without knowing A is "A" > pass > > Thomas |