% $Id$
\title{What's New in Python 2.2}
-\release{0.06}
+\release{0.07}
\author{A.M. Kuchling}
\authoraddress{\email{akuchlin@mems-exchange.org}}
\begin{document}
\item \method{__get__(\var{object})} is a method that retrieves the attribute value from \var{object}.
-\item \method{__get__(\var{object}, \var{value})} sets the attribute
+\item \method{__set__(\var{object}, \var{value})} sets the attribute
on \var{object} to \var{value}.
\end{itemize}
\code{//} is always available in Python 2.2; you don't need to enable
it using a \code{__future__} statement.
-\item By including a \code{from __future__ import true_division} in a
+\item By including a \code{from __future__ import division} in a
module, the \code{/} operator will be changed to return the result of
true division, so \code{1/2} is 0.5. Without the \code{__future__}
statement, \code{/} still means classic division. The default meaning
Peters, automatically removes obsolete \code{__future__} statements
from Python source code.
+ \item An additional \var{flags} argument has been added to the
+ built-in function \function{compile()}, so the behaviour of
+ \code{__future__} statements can now be correctly observed in
+ simulated shells, such as those presented by IDLE and other
+ development environments. This is described in \pep{264}.
+ (Contributed by Michael Hudson.)
+
\item The new license introduced with Python 1.6 wasn't
GPL-compatible. This is fixed by some minor textual changes to the
2.2 license, so it's now legal to embed Python inside a GPLed
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
Carel Fellinger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack Jansen,
-Marc-Andr\'e Lemburg, Fredrik Lundh, Tim Peters, Tom Reinhardt, Neil
-Schemenauer, Guido van Rossum.
+Marc-Andr\'e Lemburg, Fredrik Lundh, Tim Peters, Jens Quade, Tom Reinhardt,
+Neil Schemenauer, Guido van Rossum.
\end{document}