[ python-Bugs-1421839 ] Inconsistency in Programming FAQ

SourceForge.net noreply at sourceforge.net
Sat Feb 4 11:41:44 CET 2006


Bugs item #1421839, was opened at 2006-02-01 21:41
Message generated for change (Comment added) made by loewis
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1421839&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregory Petrosyan (gregory_p)
>Assigned to: A.M. Kuchling (akuchling)
Summary: Inconsistency in Programming FAQ

Initial Comment:
http://python.org/doc/faq/programming.html

1.6.8   How do I create static class data and static
class methods?
...
Static methods are possible when you're using new-style
classes:

class C:
    def static(arg1, arg2, arg3):
        # No 'self' parameter!
        ...
    static = staticmethod(static)

- Shouldn't it look like class C(object)?
- it would be nice to mention decorators here


----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2006-02-04 11:41

Message:
Logged In: YES 
user_id=21627

Did you try it out? It works. The comment "new-style
classes" is misleading - what it really should say is that
you need a Python version that has staticmethod.

Andrew, this is your text: would you like to correct it?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1421839&group_id=5470


More information about the Python-bugs-list mailing list