summaryrefslogtreecommitdiff
path: root/Doc/library
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-06-02 20:05:43 -0400
committerR David Murray <rdmurray@bitdance.com>2016-06-02 20:05:43 -0400
commit33ba52bc4d736f095b49dea844a28631a29ad836 (patch)
treec957acff814b254229f5f16601b65bc17684f48b /Doc/library
parent4ab1da4b8978758845c2bad931b39d0a5840353b (diff)
downloadcpython-33ba52bc4d736f095b49dea844a28631a29ad836.tar.gz
#26829: Clarify that namespace is copied to a new __dict__ in instance creation.
Patch by Emily Morehouse.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/functions.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 89b2ac634c..c3563f3690 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1449,8 +1449,9 @@ are always available. They are listed here in alphabetical order.
class name and becomes the :attr:`~class.__name__` attribute; the *bases*
tuple itemizes the base classes and becomes the :attr:`~class.__bases__`
attribute; and the *dict* dictionary is the namespace containing definitions
- for class body and becomes the :attr:`~object.__dict__` attribute. For
- example, the following two statements create identical :class:`type` objects:
+ for class body and is copied to a standard dictionary to become the
+ :attr:`~object.__dict__` attribute. For example, the following two
+ statements create identical :class:`type` objects:
>>> class X:
... a = 1