[Python-checkins] python/dist/src/Doc/ref ref3.tex,1.107,1.108
rhettinger@users.sourceforge.net
rhettinger@users.sourceforge.net
Sat, 28 Jun 2003 21:53:25 -0700
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory sc8-pr-cvs1:/tmp/cvs-serv8664
Modified Files:
ref3.tex
Log Message:
Minor fixes to punctuation and grammar.
Index: ref3.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref3.tex,v
retrieving revision 1.107
retrieving revision 1.108
diff -C2 -d -r1.107 -r1.108
*** ref3.tex 27 Jun 2003 06:57:56 -0000 1.107
--- ref3.tex 29 Jun 2003 04:53:23 -0000 1.108
***************
*** 1325,1330 ****
\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
and prevents the automatic creation of \var{__dict__} and \var{__weakref__}
for each instance.
--- 1325,1330 ----
\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,
! \var{__slots__} reserves space for the declared variables
and prevents the automatic creation of \var{__dict__} and \var{__weakref__}
for each instance.
***************
*** 1333,1337 ****
\noindent
! Notes on Using \var{__slots__}
\begin{itemize}
--- 1333,1337 ----
\noindent
! Notes on using \var{__slots__}
\begin{itemize}
***************
*** 1350,1354 ****
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__}
declaration would not enable support for weak references]{2.3}
--- 1350,1354 ----
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__}
declaration would not enable support for weak references]{2.3}
***************
*** 1371,1375 ****
built-in types such as \class{long}, \class{str} and \class{tuple}.
! \item Any non-string iterable may be assigned \var{__slots__}.
Mappings may also be used; however, in the future, special meaning may
be assigned to the values corresponding to each key.
--- 1371,1375 ----
built-in types such as \class{long}, \class{str} and \class{tuple}.
! \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.