From: Andrew M. Kuchling Date: Fri, 7 Dec 2001 14:22:13 +0000 (+0000) Subject: Use an immutable tuple for __slots instead of a mutable list X-Git-Tag: v2.2.1c1~489 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=038215ab0c8157b00f9112a7be245abf1fbccb16;p=thirdparty%2FPython%2Fcpython.git Use an immutable tuple for __slots instead of a mutable list Bump version number --- diff --git a/Doc/whatsnew/whatsnew22.tex b/Doc/whatsnew/whatsnew22.tex index e12c591045db..f580bbdf3fba 100644 --- a/Doc/whatsnew/whatsnew22.tex +++ b/Doc/whatsnew/whatsnew22.tex @@ -3,7 +3,7 @@ % $Id$ \title{What's New in Python 2.2} -\release{0.09} +\release{0.10} \author{A.M. Kuchling} \authoraddress{\email{akuchlin@mems-exchange.org}} \begin{document} @@ -417,7 +417,7 @@ this clear: \begin{verbatim} >>> class C(object): -... __slots__ = ['template', 'name'] +... __slots__ = ('template', 'name') ... >>> obj = C() >>> print obj.template