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/2001-July/016290.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 commentsSkip Montanaro skip@pobox.com (Skip Montanaro)
Wed, 25 Jul 2001 18:54:05 -0500
    Paul> Agree strongly. This will also be a problem for documentation
    Paul> generation tools, type extraction tools and class browsers. I
    Paul> believe it would be easy to add a contextual keyword

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

Even better yet, why not simply reuse the class keyword in this context:

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

-- 
Skip Montanaro (skip@pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/



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