Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistency in Programming FAQ #42858

Closed
gregoryp mannequin opened this issue Feb 1, 2006 · 3 comments
Closed

Inconsistency in Programming FAQ #42858

gregoryp mannequin opened this issue Feb 1, 2006 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@gregoryp
Copy link
Mannequin

gregoryp mannequin commented Feb 1, 2006

BPO 1421839
Nosy @loewis, @akuchling, @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/akuchling'
closed_at = <Date 2007-08-23.21:32:01.128>
created_at = <Date 2006-02-01.20:41:03.000>
labels = ['docs']
title = 'Inconsistency in Programming FAQ'
updated_at = <Date 2007-08-23.21:32:01.126>
user = 'https://bugs.python.org/gregoryp'

bugs.python.org fields:

activity = <Date 2007-08-23.21:32:01.126>
actor = 'georg.brandl'
assignee = 'akuchling'
closed = True
closed_date = <Date 2007-08-23.21:32:01.128>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2006-02-01.20:41:03.000>
creator = 'gregory_p'
dependencies = []
files = []
hgrepos = []
issue_num = 1421839
keywords = []
message_count = 3.0
messages = ['27406', '27407', '55222']
nosy_count = 4.0
nosy_names = ['loewis', 'akuchling', 'georg.brandl', 'gregory_p']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1421839'
versions = []

@gregoryp
Copy link
Mannequin Author

gregoryp mannequin commented Feb 1, 2006

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

@gregoryp gregoryp mannequin assigned akuchling Feb 1, 2006
@gregoryp gregoryp mannequin added the docs Documentation in the Doc dir label Feb 1, 2006
@gregoryp gregoryp mannequin assigned akuchling Feb 1, 2006
@gregoryp gregoryp mannequin added the docs Documentation in the Doc dir label Feb 1, 2006
@loewis
Copy link
Mannequin

loewis mannequin commented Feb 4, 2006

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?

@birkenfeld
Copy link
Member

Fixed in my pydotorg tree, will commit ASAP.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants