[Python-Dev] Classmethod Help

Armin Rigo arigo@tunes.org
Fri, 29 Nov 2002 03:50:41 -0800 (PST)


Hello Raymond,

On Mon, Nov 25, 2002 at 06:07:05PM -0500, Raymond Hettinger wrote:
> GvR pointed me to you guys for help in the C 
> implementation of the patch for a dictionary class method:

There are METH_CLASS and METH_STATIC flags that you can set in the
tp_methods table.

By the way, in your example you don't use the 'cls' parameter, so this
looks like a static method rather than a class method, right?


Armin