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-February/020015.html below:

[Python-Dev] syntactic sugar idea for {static,class}methods

[Python-Dev] syntactic sugar idea for {static,class}methods [Python-Dev] syntactic sugar idea for {static,class}methodsSkip Montanaro skip@pobox.com
Tue, 12 Feb 2002 12:29:37 -0600
    MH> class C(object):
    MH>     def static(arg) [staticmethod]:
    MH>     return 1 + arg

    BAW> Why the square brackets though?

I believe Guido addressed this in his DevDay presentation.  The list
construct is to allow future extensions without requiring parser changes.

Skip




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