diff options
author | Raymond Hettinger <python@rcn.com> | 2003-06-29 04:53:23 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-06-29 04:53:23 (GMT) |
commit | 5918f8de674915377e4a4aa0ed9cd05db606dd28 (patch) | |
tree | cc9e6e5753b14f40de4fbb6900652d7ee10e81d3 /Doc/ref | |
parent | bc05fc5d2b970a18686c71479f28372a24f97190 (diff) | |
download | cpython-5918f8de674915377e4a4aa0ed9cd05db606dd28.zip cpython-5918f8de674915377e4a4aa0ed9cd05db606dd28.tar.gz cpython-5918f8de674915377e4a4aa0ed9cd05db606dd28.tar.bz2 |
Minor fixes to punctuation and grammar.
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref3.tex | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index cef8d5c..129ab09 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -1324,15 +1324,15 @@ each instance. \begin{datadesc}{__slots__} This class variable can be assigned a string, iterable, or sequence of strings -with variable names used by instances. If defined in a new-style class -definition, \var{__slots__} reserves space for the declared variables +with variable names used by instances. If defined in a new-style class, +\var{__slots__} reserves space for the declared variables and prevents the automatic creation of \var{__dict__} and \var{__weakref__} for each instance. \versionadded{2.2} \end{datadesc} \noindent -Notes on Using \var{__slots__} +Notes on using \var{__slots__} \begin{itemize} @@ -1349,7 +1349,7 @@ specifically listed in the sequence of instance variable names]{2.3} defining \var{__slots__} do not support weak references to its instances. If weak reference support is needed, then add \code{'__weakref__'} to the sequence of strings in the \var{__slots__} declaration. -\versionchanged[Previously, adding \code{__weakref__} to the \var{__slots__} +\versionchanged[Previously, adding \code{'__weakref__'} to the \var{__slots__} declaration would not enable support for weak references]{2.3} \item \var{__slots__} are implemented at the class level by creating @@ -1370,7 +1370,7 @@ unless they also define \var{__slots__}. \item \var{__slots__} do not work for classes derived from ``variable-length'' built-in types such as \class{long}, \class{str} and \class{tuple}. -\item Any non-string iterable may be assigned \var{__slots__}. +\item Any non-string iterable may be assigned to \var{__slots__}. Mappings may also be used; however, in the future, special meaning may be assigned to the values corresponding to each key. |