diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/ref/ref3.tex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index c5dbfd2..c0f3219 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -1593,6 +1593,11 @@ built-in types such as \class{long}, \class{str} and \class{tuple}. Mappings may also be used; however, in the future, special meaning may be assigned to the values corresponding to each key. +\item \var{__class__} assignment works only if both classes have the +same \var{__slots__}. +\versionchanged[Previously, \var{__class__} assignment raised an error +if either new or old class had \var{__slots__}]{2.6} + \end{itemize} @@ -2223,3 +2228,6 @@ exception; this is the caller's responsibility. Python \keyword{with} statement.} \end{seealso} + + + |