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

Language reference, class definitions: missing text in "Programmer's note" #47479

Closed
oefe mannequin opened this issue Jun 28, 2008 · 2 comments
Closed

Language reference, class definitions: missing text in "Programmer's note" #47479

oefe mannequin opened this issue Jun 28, 2008 · 2 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@oefe
Copy link
Mannequin

oefe mannequin commented Jun 28, 2008

BPO 3229
Nosy @birkenfeld, @benjaminp

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/birkenfeld'
closed_at = <Date 2008-06-28.23:05:31.230>
created_at = <Date 2008-06-28.20:44:21.205>
labels = ['docs']
title = 'Language reference, class definitions: missing text in "Programmer\'s note"'
updated_at = <Date 2008-06-28.23:05:31.229>
user = 'https://bugs.python.org/oefe'

bugs.python.org fields:

activity = <Date 2008-06-28.23:05:31.229>
actor = 'benjamin.peterson'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2008-06-28.23:05:31.230>
closer = 'benjamin.peterson'
components = ['Documentation']
creation = <Date 2008-06-28.20:44:21.205>
creator = 'oefe'
dependencies = []
files = []
hgrepos = []
issue_num = 3229
keywords = []
message_count = 2.0
messages = ['68908', '68923']
nosy_count = 3.0
nosy_names = ['georg.brandl', 'oefe', 'benjamin.peterson']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3229'
versions = ['Python 3.0']

@oefe
Copy link
Mannequin Author

oefe mannequin commented Jun 28, 2008

In the language reference, compound statements, class definitions:
"""
Programmer’s note: Variables defined in the class definition are class can
be set in a method with self.name = value.
"""

This sentence doesn't is not even grammatically valid. It seems that there
is something missing after "are class".

See:
http://docs.python.org/dev/3.0/reference/compound_stmts.html#class-
definitions

In 2.5, the corresponding text is:
"""
Programmer's note: Variables defined in the class definition are class
variables; they are shared by all instances. To define instance variables,
they must be given a value in the __init__() method or in another method.
"""

@oefe oefe mannequin assigned birkenfeld Jun 28, 2008
@oefe oefe mannequin added the docs Documentation in the Doc dir label Jun 28, 2008
@benjaminp
Copy link
Contributor

Thanks fixed in r64581.

@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