A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-July/016287.html below:

Static method and class method comments

[Python-Dev] Re: Static method and class method comments [Python-Dev] Re: Static method and class method commentsPaul Prescod paulp@ActiveState.com
Wed, 25 Jul 2001 16:29:32 -0700
>Kevin Smith wrote:
> 
> I am very glad to see the new features of Python 2.2, but I do have a minor
> gripe about the implementation of static and class methods.  My issue stems
> from the fact that when glancing over Python code that uses static or class
> methods, you cannot tell that a method is a static or class method by looking
> at the point where it is defined.  
> ...

Agree strongly. This will also be a problem for documentation generation
tools, type extraction tools and class browsers. I believe it would be
easy to add a contextual keyword 

> class C:
>         def static foo(x, y):
>             print "classmethod", x, y

-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook



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