FEEDBACK WANTED: Type/class unification

Hernan M. Foffani hfoffani at yahoo.com
Sun Jul 29 17:00:54 EDT 2001


I hope this msg is not too far away from what you expected
by "FEEDBACK WANTED".

If I understood the unification correctly, in
http://www.python.org/2.2/descrintro.html where it reads:
    >>> print a.keys()
    [1, 2, 3, '__builtins__', 'x']
the 3 is a typo, right?

And where it says,
    But notice this:

     class E(C):
        def foo(x, y): # override C.foo
            print "E.foo() called"
            C.foo(y)

Isn't a call to "foo = classmethod(foo)" missing after that?
If so, in the PEP the call is missing too.

One minor suggestion:
I think it would help if you set a convention for the name
of the first argument in classmethods. Like self for standard
methods. Well, even self can "work" here, too.

Regards,
-Hernan

-- 
-------------------- http://NewsReader.Com/ --------------------
                    Usenet Newsgroup Service



More information about the Python-list mailing list