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-August/017010.html below:

[Python-Dev] 2.2a1: classmethod() and class attributes

[Python-Dev] 2.2a1: classmethod() and class attributes [Python-Dev] 2.2a1: classmethod() and class attributesAahz Maruch aahz@rahul.net
Mon, 13 Aug 2001 19:31:11 -0700 (PDT)
Guido van Rossum wrote:
> 
> BTW, please read the introduction at
>   http://www.python.org/2.2/descrintro.html

Okay, I did that.

It's not particularly convenient for me to try out 2.2a1, so I'm just
going by what's written.  One little hole that I don't see an answer to
is what happens when you do this:

class C(object):
    x = 0
    def foo(cls):
        cls.x += 1
    foo = classmethod(foo)

C.foo()
-- 
                      --- Aahz (@pobox.com)

Hugs and backrubs -- I break Rule 6       <*>       http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista

I don't really mind a person having the last whine, but I do mind someone 
else having the last self-righteous whine.



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