Commit d927348b authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Use an immutable tuple for __slots instead of a mutable list

Bump version number
parent bbf892e3
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
% $Id$ % $Id$
\title{What's New in Python 2.2} \title{What's New in Python 2.2}
\release{0.09} \release{0.10}
\author{A.M. Kuchling} \author{A.M. Kuchling}
\authoraddress{\email{akuchlin@mems-exchange.org}} \authoraddress{\email{akuchlin@mems-exchange.org}}
\begin{document} \begin{document}
...@@ -417,7 +417,7 @@ this clear: ...@@ -417,7 +417,7 @@ this clear:
\begin{verbatim} \begin{verbatim}
>>> class C(object): >>> class C(object):
... __slots__ = ['template', 'name'] ... __slots__ = ('template', 'name')
... ...
>>> obj = C() >>> obj = C()
>>> print obj.template >>> print obj.template
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment