summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-06-28 23:05:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-06-28 23:05:03 (GMT)
commitf04779b59a1eb7044c1bee0c7c288dfcb3ac4542 (patch)
tree4c5639c44ee8d7da5ef81ed4db8f447cd3c698c6 /Doc/reference
parented25b2c358fa424513979b4822c8e24afbc4e0cc (diff)
downloadcpython-f04779b59a1eb7044c1bee0c7c288dfcb3ac4542.zip
cpython-f04779b59a1eb7044c1bee0c7c288dfcb3ac4542.tar.gz
cpython-f04779b59a1eb7044c1bee0c7c288dfcb3ac4542.tar.bz2
#3229 fix typo and expand notes a little
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index ed770cb..c5b949e 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -569,12 +569,13 @@ is equivalent to ::
Foo = f1(arg)(f2(Foo))
**Programmer's note:** Variables defined in the class definition are class
-can be set in a method with ``self.name = value``. Both class and instance
-variables are accessible through the notation "``self.name``", and an instance
-variable hides a class variable with the same name when accessed in this way.
-Class variables can be used as defaults for instance variables, but using
-mutable values there can lead to unexpected results. Descriptors can be used
-to create instance variables with different implementation details.
+variables; they are shared by instances. Instance variables can be set in a
+method with ``self.name = value``. Both class and instance variables are
+accessible through the notation "``self.name``", and an instance variable hides
+a class variable with the same name when accessed in this way. Class variables
+can be used as defaults for instance variables, but using mutable values there
+can lead to unexpected results. Descriptors can be used to create instance
+variables with different implementation details.
.. XXX add link to descriptor docs above