[Python-Dev] METH_CLASS

Thomas Heller thomas.heller@ion-tof.com
2002年4月25日 14:57:10 +0200


I wrote:
> 3. While we're at it, although I could try to find out myself:
> How would one create a classmethod [in C] in Python 2.2?

and I answered it myself with a variant of my standard answer:
Implement it as an instance method in the metaclass.
Thomas

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