Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4f9e220e
Commit
4f9e220e
authored
Oct 29, 2001
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix two typos noted by Jens Quade
Bump version number
parent
589abb72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
Doc/whatsnew/whatsnew22.tex
Doc/whatsnew/whatsnew22.tex
+12
-5
No files found.
Doc/whatsnew/whatsnew22.tex
View file @
4f9e220e
...
...
@@ -3,7 +3,7 @@
% $Id$
\title
{
What's New in Python 2.2
}
\release
{
0.0
6
}
\release
{
0.0
7
}
\author
{
A.M. Kuchling
}
\authoraddress
{
\email
{
akuchlin@mems-exchange.org
}}
\begin{document}
...
...
@@ -212,7 +212,7 @@ have a few attributes of their own:
\item
\method
{__
get
__
(
\var
{
object
}
)
}
is a method that retrieves the attribute value from
\var
{
object
}
.
\item
\method
{__
g
et
__
(
\var
{
object
}
,
\var
{
value
}
)
}
sets the attribute
\item
\method
{__
s
et
__
(
\var
{
object
}
,
\var
{
value
}
)
}
sets the attribute
on
\var
{
object
}
to
\var
{
value
}
.
\end{itemize}
...
...
@@ -832,7 +832,7 @@ its operands are, so \code{1 // 2} is 0 and \code{1.0 // 2.0} is also
\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
...
...
@@ -1280,6 +1280,13 @@ to experiment with these modules can uncomment them manually.
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
...
...
@@ -1362,7 +1369,7 @@ The author would like to thank the following people for offering
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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment