Movatterモバイル変換


[0]ホーム

URL:


homepage

Issue3229

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title:Language reference, class definitions: missing text in "Programmer's note"
Type:Stage:
Components:DocumentationVersions:Python 3.0
process
Status:closedResolution:fixed
Dependencies:Superseder:
Assigned To: georg.brandlNosy List: benjamin.peterson, georg.brandl, oefe
Priority:normalKeywords:

Created on2008-06-28 20:44 byoefe, last changed2022-04-11 14:56 byadmin. This issue is nowclosed.

Messages (2)
msg68908 -(view)Author: Martina Oefelein (oefe)Date: 2008-06-28 20:44
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-definitionsIn 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."""
msg68923 -(view)Author: Benjamin Peterson (benjamin.peterson)*(Python committer)Date: 2008-06-28 23:05
Thanks fixed inr64581.
History
DateUserActionArgs
2022-04-11 14:56:35adminsetgithub: 47479
2008-06-28 23:05:31benjamin.petersonsetstatus: open -> closed
nosy: +benjamin.peterson
resolution: fixed
messages: +msg68923
2008-06-28 20:44:21oefecreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp