A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/030559.html below:

[Python-Dev] Classmethod Help

[Python-Dev] Classmethod Help [Python-Dev] Classmethod HelpArmin 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




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4