You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(11) |
Sep
(10) |
Oct
(11) |
Nov
(8) |
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(12) |
Feb
(7) |
Mar
(21) |
Apr
(5) |
May
(4) |
Jun
(1) |
Jul
(33) |
Aug
(5) |
Sep
(13) |
Oct
(16) |
Nov
(2) |
Dec
(6) |
| 2002 |
Jan
|
Feb
|
Mar
(6) |
Apr
(4) |
May
(1) |
Jun
|
Jul
(4) |
Aug
|
Sep
(1) |
Oct
|
Nov
(6) |
Dec
(1) |
| 2003 |
Jan
(1) |
Feb
(2) |
Mar
|
Apr
(6) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: A.M. K. <aku...@us...> - 2002-04-16 19:32:04
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv641 Removed Files: python-dev.tex Log Message: Remove this HOWTO; its contents are now at www.python.org/dev/ |
|
From: A.M. K. <aku...@us...> - 2002-04-01 21:04:51
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv16132
Removed Files:
python-21.tex python-22.tex python-2.0.tex
Log Message:
Remove the "What's New" documents; they are now in Doc/whatsnew in the Python
CVS tree.
|
|
From: Fred L. D. Jr. <fd...@ac...> - 2002-03-08 16:58:51
|
A.M. Kuchling writes: > Removed Files: > xml-howto.tex xml-ref.tex > Log Message: > Remove obsolete HOWTOs Thank you, thank you, thank you! -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation |
|
From: A.M. K. <aku...@us...> - 2002-03-08 16:51:11
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv25680 Removed Files: xml-howto.tex xml-ref.tex Log Message: Remove obsolete HOWTOs |
|
From: A.M. K. <aku...@us...> - 2002-03-08 16:49:29
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv25089 Removed Files: apachenote.tex Log Message: Remove obsolete HOWTO |
|
From: A.M. K. <aku...@us...> - 2002-03-08 16:48:42
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv24710 Removed Files: regex-to-re.tex Log Message: Remove obsolete HOWTO |
|
From: A.M. K. <aku...@us...> - 2002-03-08 16:42:39
|
Update of /cvsroot/py-howto/pyhowto In directory usw-pr-cvs1:/tmp/cvs-serv21413 Removed Files: bobo-medusa.tex Log Message: Remove obsolete HOWTO |
|
From: A.M. K. <aku...@us...> - 2002-03-07 01:50:11
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv4289
Modified Files:
python-dev.tex
Log Message:
Fix Aahz's name
Index: python-dev.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-dev.tex,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** python-dev.tex 20 Sep 2001 02:47:26 -0000 1.10
--- python-dev.tex 7 Mar 2002 01:50:09 -0000 1.11
***************
*** 476,482 ****
\section{Acknowledgements}
! The author would like to thank the following people for offering
! suggestions on various drafts of this article: Steve Ferg, Aahz
! Maruch, Skip Montanaro, Guido van Rossum.
\end{document}
--- 476,482 ----
\section{Acknowledgements}
! The author would like to thank the following people for offering suggestions
! on various drafts of this article: Steve Ferg, Aahz,
! Skip Montanaro, Guido van Rossum.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-12-21 04:39:14
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv3833
Modified Files:
python-22.tex
Log Message:
1.00 at last!
Describe super() very briefly
A few minor reformattings and wording changes
Set the release date (presumably tomorrow...)
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -r1.53 -r1.54
*** python-22.tex 2001/12/20 16:33:45 1.53
--- python-22.tex 2001/12/21 04:39:11 1.54
***************
*** 4,8 ****
\title{What's New in Python 2.2}
! \release{0.10}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
--- 4,8 ----
\title{What's New in Python 2.2}
! \release{1.00}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
***************
*** 12,17 ****
\section{Introduction}
! This article explains the new features in Python 2.2.
! The final release of Python 2.2 is planned for December 2001.
Python 2.2 can be thought of as the "cleanup release". There are some
--- 12,17 ----
\section{Introduction}
! This article explains the new features in Python 2.2, released on
! December 21, 2001.
Python 2.2 can be thought of as the "cleanup release". There are some
***************
*** 246,250 ****
syntax for creating such methods (\code{def static f()},
\code{defstatic f()}, or something like that) but no such syntax has
! been defined yet; that's been left for future versions.
More new features, such as slots and properties, are also implemented
--- 246,250 ----
syntax for creating such methods (\code{def static f()},
\code{defstatic f()}, or something like that) but no such syntax has
! been defined yet; that's been left for future versions of Python.
More new features, such as slots and properties, are also implemented
***************
*** 261,268 ****
--- 261,271 ----
def f(self, arg1, arg2):
# The actual function
+ ...
def pre_f(self):
# Check preconditions
+ ...
def post_f(self):
# Check postconditions
+ ...
f = eiffelmethod(f, pre_f, post_f)
***************
*** 277,280 ****
--- 280,284 ----
ignore the implementation details.
+
\subsection{Multiple Inheritance: The Diamond Rule}
***************
*** 327,333 ****
Following this rule, referring to \method{D.save()} will return
\method{C.save()}, which is the behaviour we're after. This lookup
! rule is the same as the one followed by Common Lisp.
! % XXX mention super()
--- 331,356 ----
Following this rule, referring to \method{D.save()} will return
\method{C.save()}, which is the behaviour we're after. This lookup
! rule is the same as the one followed by Common Lisp. A new built-in
! function, \function{super()}, provides a way to get at a class's
! superclasses without having to reimplement Python's algorithm.
! The most commonly used form will be
! \function{super(\var{class}, \var{obj})}, which returns
! a bound superclass object (not the actual class object). This form
! will be used in methods to call a method in the superclass; for
! example, \class{D}'s \method{save()} method would look like this:
!
! \begin{verbatim}
! class D:
! def save (self):
! # Call superclass .save()
! super(D, self).save()
! # Save D's private information here
! ...
! \end{verbatim}
! \function{super()} can also return unbound superclass objects
! when called as \function{super(\var{class})} or
! \function{super(\var{class1}, \var{class2})}, but this probably won't
! often be useful.
|
|
From: A.M. K. <aku...@us...> - 2001-12-20 16:33:48
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv10672
Modified Files:
python-22.tex
Log Message:
Update the documentation links
Remove reference to this being a draft
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -r1.52 -r1.53
*** python-22.tex 2001/12/20 16:04:24 1.52
--- python-22.tex 2001/12/20 16:33:45 1.53
***************
*** 12,22 ****
\section{Introduction}
- {\large This document is a draft, and is subject to change until the
- final version of Python 2.2 is released. Currently it's up to date
- for Python 2.2 beta 1. Please send any comments, bug reports, or
- questions, no matter how minor, to \email{aku...@me...}.
- }
-
This article explains the new features in Python 2.2.
Python 2.2 can be thought of as the "cleanup release". There are some
--- 12,17 ----
\section{Introduction}
This article explains the new features in Python 2.2.
+ The final release of Python 2.2 is planned for December 2001.
Python 2.2 can be thought of as the "cleanup release". There are some
***************
*** 30,43 ****
full details, you should refer to the documentation for Python 2.2,
such as the
! \citetitle[http://python.sourceforge.net/devel-docs/lib/lib.html]{Python
Library Reference} and the
! \citetitle[http://python.sourceforge.net/devel-docs/ref/ref.html]{Python
! Reference Manual}.
! % XXX These \citetitle marks should get the python.org URLs for the final
! % release, just as soon as the docs are published there.
! If you want to understand the complete implementation and design
! rationale for a change, refer to the PEP for a particular new feature.
!
! The final release of Python 2.2 is planned for December 2001.
\begin{seealso}
--- 25,34 ----
full details, you should refer to the documentation for Python 2.2,
such as the
! \citetitle[http://www.python.org/doc/2.2/lib/lib.html]{Python
Library Reference} and the
! \citetitle[http://www.python.org/doc/2.2/ref/ref.html]{Python
! Reference Manual}. If you want to understand the complete
! implementation and design rationale for a change, refer to the PEP for
! a particular new feature.
\begin{seealso}
|
|
From: A.M. K. <aku...@us...> - 2001-12-20 16:04:27
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv2158
Modified Files:
python-22.tex
Log Message:
Use the final patch/bug numbers
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -r1.51 -r1.52
*** python-22.tex 2001/12/07 14:22:13 1.51
--- python-22.tex 2001/12/20 16:04:24 1.52
***************
*** 1261,1268 ****
\section{Other Changes and Fixes}
- % XXX update the patch and bug figures as we go
As usual there were a bunch of other improvements and bugfixes
scattered throughout the source tree. A search through the CVS change
! logs finds there were 312 patches applied, and 391 bugs fixed; both
figures are likely to be underestimates. Some of the more notable
changes are:
--- 1261,1267 ----
\section{Other Changes and Fixes}
As usual there were a bunch of other improvements and bugfixes
scattered throughout the source tree. A search through the CVS change
! logs finds there were 527 patches applied, and 683 bugs fixed; both
figures are likely to be underestimates. Some of the more notable
changes are:
|
|
From: A.M. K. <aku...@us...> - 2001-12-07 14:22:18
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv7155
Modified Files:
python-22.tex
Log Message:
Use an immutable tuple for __slots instead of a mutable list
Bump version number
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -r1.50 -r1.51
*** python-22.tex 2001/12/03 20:58:29 1.50
--- python-22.tex 2001/12/07 14:22:13 1.51
***************
*** 4,8 ****
\title{What's New in Python 2.2}
! \release{0.09}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
--- 4,8 ----
\title{What's New in Python 2.2}
! \release{0.10}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
***************
*** 418,422 ****
\begin{verbatim}
>>> class C(object):
! ... __slots__ = ['template', 'name']
...
>>> obj = C()
--- 418,422 ----
\begin{verbatim}
>>> class C(object):
! ... __slots__ = ('template', 'name')
...
>>> obj = C()
|
|
From: A.M. K. <aku...@us...> - 2001-12-03 20:58:32
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv12300
Modified Files:
python-22.tex
Log Message:
Oops! Forgot the value parameter.
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.49
retrieving revision 1.50
diff -C2 -r1.49 -r1.50
*** python-22.tex 2001/12/03 20:55:37 1.49
--- python-22.tex 2001/12/03 20:58:29 1.50
***************
*** 217,221 ****
on \var{object} to \var{value}.
! \item \method{__delete__(\var{object})} deletes the \var{value}
attribute of \var{object}.
\end{itemize}
--- 217,221 ----
on \var{object} to \var{value}.
! \item \method{__delete__(\var{object}, \var{value})} deletes the \var{value}
attribute of \var{object}.
\end{itemize}
|
|
From: A.M. K. <aku...@us...> - 2001-12-03 20:55:41
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv11481
Modified Files:
python-22.tex
Log Message:
Add __delete__ method of properties
Reflow paragraph
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -r1.48 -r1.49
*** python-22.tex 2001/11/26 18:15:44 1.48
--- python-22.tex 2001/12/03 20:55:37 1.49
***************
*** 211,219 ****
\item \member{__doc__} is the attribute's docstring.
! \item \method{__get__(\var{object})} is a method that retrieves the attribute value from \var{object}.
\item \method{__set__(\var{object}, \var{value})} sets the attribute
on \var{object} to \var{value}.
\end{itemize}
--- 211,222 ----
\item \member{__doc__} is the attribute's docstring.
! \item \method{__get__(\var{object})} is a method that retrieves the
! attribute value from \var{object}.
\item \method{__set__(\var{object}, \var{value})} sets the attribute
on \var{object} to \var{value}.
+ \item \method{__delete__(\var{object})} deletes the \var{value}
+ attribute of \var{object}.
\end{itemize}
|
|
From: A.M. K. <aku...@us...> - 2001-11-26 18:15:50
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv3814
Modified Files:
python-22.tex
Log Message:
Correctly create new-style classes in the examples
Mention change to _PyTuple_Resize
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** python-22.tex 2001/10/31 13:16:10 1.47
--- python-22.tex 2001/11/26 18:15:44 1.48
***************
*** 237,241 ****
\begin{verbatim}
! class C:
def f(arg1, arg2):
...
--- 237,241 ----
\begin{verbatim}
! class C(object):
def f(arg1, arg2):
...
***************
*** 264,268 ****
from eiffel import eiffelmethod
! class C:
def f(self, arg1, arg2):
# The actual function
--- 264,268 ----
from eiffel import eiffelmethod
! class C(object):
def f(self, arg1, arg2):
# The actual function
***************
*** 376,380 ****
\begin{verbatim}
! class C:
def get_size (self):
result = ... computation ...
--- 376,380 ----
\begin{verbatim}
! class C(object):
def get_size (self):
result = ... computation ...
***************
*** 1247,1250 ****
--- 1247,1255 ----
(Contributed by M.-A. Lemburg.)
+ \item The \cfunction{_PyTuple_Resize()} function has lost an unused
+ parameter, so now it takes 2 parameters instead of 3. The third
+ argument was never used, and can simply be discarded when porting
+ code from earlier versions to Python 2.2.
+
\end{itemize}
***************
*** 1405,1412 ****
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
! Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack
! Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
! Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
! Reinhardt, Neil Schemenauer, Guido van Rossum, Greg Ward.
\end{document}
--- 1410,1418 ----
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
! Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael
! Hudson, Jack Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik
! Lundh, Michael McLay, Nick Mathewson, Paul Moore, Gustavo Niemeyer,
! Don O'Donnell, Tim Peters, Jens Quade, Tom Reinhardt, Neil
! Schemenauer, Guido van Rossum, Greg Ward.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-11-05 21:25:45
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv12352
Modified Files:
advocacy.tex curses.tex python-2.0.tex python-21.tex
regex-to-re.tex regex.tex rexec.tex
Log Message:
Remove obsolete e-mail address
Index: advocacy.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/advocacy.tex,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** advocacy.tex 2001/09/17 06:01:28 1.5
--- advocacy.tex 2001/11/05 21:25:41 1.6
***************
*** 7,11 ****
\author{A.M. Kuchling}
! \authoraddress{\email{am...@bi...}}
\begin{document}
--- 7,11 ----
\author{A.M. Kuchling}
! \authoraddress{\email{aku...@me...}}
\begin{document}
Index: curses.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/curses.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** curses.tex 2001/05/31 07:02:21 1.15
--- curses.tex 2001/11/05 21:25:42 1.16
***************
*** 6,10 ****
\author{A.M. Kuchling \and\ Eric S. Raymond}
! \authoraddress{\email{am...@bi...}, \email{es...@th...}}
\begin{document}
--- 6,10 ----
\author{A.M. Kuchling \and\ Eric S. Raymond}
! \authoraddress{\email{aku...@me...}, \email{es...@th...}}
\begin{document}
Index: python-2.0.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-2.0.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** python-2.0.tex 2000/10/19 01:42:33 1.41
--- python-2.0.tex 2001/11/05 21:25:42 1.42
***************
*** 6,10 ****
\release{1.01}
\author{A.M. Kuchling and Moshe Zadka}
! \authoraddress{\email{am...@bi...}, \email{mo...@ma...} }
\begin{document}
\maketitle\tableofcontents
--- 6,10 ----
\release{1.01}
\author{A.M. Kuchling and Moshe Zadka}
! \authoraddress{\email{aku...@me...}, \email{mo...@ma...} }
\begin{document}
\maketitle\tableofcontents
Index: python-21.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-21.tex,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** python-21.tex 2001/07/20 03:22:00 1.27
--- python-21.tex 2001/11/05 21:25:42 1.28
***************
*** 8,12 ****
\release{1.00}
\author{A.M. Kuchling}
! \authoraddress{\email{am...@bi...}}
\begin{document}
\maketitle\tableofcontents
--- 8,12 ----
\release{1.00}
\author{A.M. Kuchling}
! \authoraddress{\email{aku...@me...}}
\begin{document}
\maketitle\tableofcontents
Index: regex-to-re.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/regex-to-re.tex,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** regex-to-re.tex 2000/10/04 12:37:03 1.4
--- regex-to-re.tex 2001/11/05 21:25:42 1.5
***************
*** 6,10 ****
\author{A.M. Kuchling}
! \authoraddress{\email{am...@bi...}}
\begin{document}
--- 6,10 ----
\author{A.M. Kuchling}
! \authoraddress{\email{aku...@me...}}
\begin{document}
Index: regex.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/regex.tex,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** regex.tex 2001/04/23 16:54:49 1.9
--- regex.tex 2001/11/05 21:25:42 1.10
***************
*** 12,16 ****
\author{A.M. Kuchling}
! \authoraddress{\email{am...@bi...}}
\begin{document}
--- 12,16 ----
\author{A.M. Kuchling}
! \authoraddress{\email{aku...@me...}}
\begin{document}
***************
*** 1377,1381 ****
you understand them? Were there parts that were unclear, or Problems
you encountered that weren't covered here? If so, please send
! suggestions for improvements to \email{am...@bi...}.
The most complete book on regular expressions is almost certainly
--- 1377,1381 ----
you understand them? Were there parts that were unclear, or Problems
you encountered that weren't covered here? If so, please send
! suggestions for improvements to the author.
The most complete book on regular expressions is almost certainly
Index: rexec.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/rexec.tex,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** rexec.tex 2000/11/25 00:46:51 1.8
--- rexec.tex 2001/11/05 21:25:42 1.9
***************
*** 6,10 ****
\author{A.M. Kuchling}
! \authoraddress{\email{am...@bi...}}
\begin{document}
--- 6,10 ----
\author{A.M. Kuchling}
! \authoraddress{\email{aku...@me...}}
\begin{document}
***************
*** 188,194 ****
\section{Frequently Asked Questions}
- [I want more questions to be answered in this section;
- please send them to \code{am...@bi...}.]
-
\emph{How do I guard against denial-of-service attacks? Or, how do I
keep restricted code from consuming a lot of memory?}
--- 188,191 ----
***************
*** 561,566 ****
Sep. 12, 1998: Minor revisions and added the reference to the Janus project.
! Feb. 26, 1998: First version. Suggestions are welcome; please send them
! to \code{am...@bi...}.
Mar. 16, 1998: Made some revisions suggested by Jeff Rush. Some minor
--- 558,562 ----
Sep. 12, 1998: Minor revisions and added the reference to the Janus project.
! Feb. 26, 1998: First version. Suggestions are welcome.
Mar. 16, 1998: Made some revisions suggested by Jeff Rush. Some minor
|
|
From: A.M. K. <aku...@us...> - 2001-10-31 13:16:13
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv24781
Modified Files:
python-22.tex
Log Message:
Fix markup typo
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -r1.46 -r1.47
*** python-22.tex 2001/10/31 13:13:36 1.46
--- python-22.tex 2001/10/31 13:16:10 1.47
***************
*** 43,47 ****
\begin{seealso}
! \url{http://www.unixreview.com/documents/s=1356/urm0109h/0109h.htm}
{``What's So Special About Python 2.2?'' is also about the new 2.2
features, and was written by Cameron Laird and Kathryn Soraiz.}
--- 43,47 ----
\begin{seealso}
! \seeurl{http://www.unixreview.com/documents/s=1356/urm0109h/0109h.htm}
{``What's So Special About Python 2.2?'' is also about the new 2.2
features, and was written by Cameron Laird and Kathryn Soraiz.}
|
|
From: A.M. K. <aku...@us...> - 2001-10-31 13:13:40
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv23676
Modified Files:
python-22.tex
Log Message:
Add paragraph about difflib suggested by David Goodger
Bump version number
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.45
retrieving revision 1.46
diff -C2 -r1.45 -r1.46
*** python-22.tex 2001/10/30 22:18:21 1.45
--- python-22.tex 2001/10/31 13:13:36 1.46
***************
*** 4,8 ****
\title{What's New in Python 2.2}
! \release{0.08}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
--- 4,8 ----
\title{What's New in Python 2.2}
! \release{0.09}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
***************
*** 1149,1152 ****
--- 1149,1161 ----
arising out of his work on Mailman.)
+ \item The \module{difflib} module now contains a new \class{Differ}
+ class for producing human-readable lists of changes (a ``delta'')
+ between two sequences of lines of text. There are also two
+ generator functions, \function{ndiff()} and \function{restore()},
+ which respectively return a delta from two sequences, or one of the
+ original sequences from a delta. (Grunt work contributed by David
+ Goodger, from ndiff.py code by Tim Peters who then did the
+ generatorization.)
+
\item New constants \constant{ascii_letters},
\constant{ascii_lowercase}, and \constant{ascii_uppercase} were
***************
*** 1396,1400 ****
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, Martin von L\"owis, Fredrik Lundh,
Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
--- 1405,1409 ----
suggestions, corrections and assistance with various drafts of this
article: Fred Bremmer, Keith Briggs, Andrew Dalke, Fred~L. Drake, Jr.,
! Carel Fellinger, David Goodger, Mark Hammond, Stephen Hansen, Michael Hudson, Jack
Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
|
|
From: A.M. K. <aku...@us...> - 2001-10-30 22:18:24
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv22943
Modified Files:
python-22.tex
Log Message:
Fix grammar error
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -r1.44 -r1.45
*** python-22.tex 2001/10/30 21:36:04 1.44
--- python-22.tex 2001/10/30 22:18:21 1.45
***************
*** 233,237 ****
static methods aren't passed the instance, and therefore resemble
regular functions. Class methods are passed the class of the object,
! but not the object itself. Static and class methods is defined like
this:
--- 233,237 ----
static methods aren't passed the instance, and therefore resemble
regular functions. Class methods are passed the class of the object,
! but not the object itself. Static and class methods are defined like
this:
***************
*** 1399,1403 ****
Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
! Reinhardt, Neil Schemenauer, Guido van Rossum.
\end{document}
--- 1399,1403 ----
Jansen, Marc-Andr\'e Lemburg, Martin von L\"owis, Fredrik Lundh,
Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
! Reinhardt, Neil Schemenauer, Guido van Rossum, Greg Ward.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-10-30 21:36:08
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv10262
Modified Files:
python-22.tex
Log Message:
Rewrites and additions resulting from today's feedback
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -r1.43 -r1.44
*** python-22.tex 2001/10/30 14:35:03 1.43
--- python-22.tex 2001/10/30 21:36:04 1.44
***************
*** 51,55 ****
%======================================================================
! \section{PEP 252: Type and Class Changes}
The largest and most far-reaching changes in Python 2.2 are to
--- 51,55 ----
%======================================================================
! \section{PEPs 252 and 253: Type and Class Changes}
The largest and most far-reaching changes in Python 2.2 are to
***************
*** 335,339 ****
--- 335,341 ----
rule is the same as the one followed by Common Lisp.
+ % XXX mention super()
+
\subsection{Attribute Access}
***************
*** 872,891 ****
Python 2.2 can also be compiled to use UCS-4, 32-bit unsigned
integers, as its internal encoding by supplying
! \longprogramopt{enable-unicode=ucs4} to the configure script. When
! built to use UCS-4 (a ``wide Python''), the interpreter can natively
! handle Unicode characters from U+000000 to U+110000, so the range of
! legal values for the \function{unichr()} function is expanded
accordingly. Using an interpreter compiled to use UCS-2 (a ``narrow
Python''), values greater than 65535 will still cause
\function{unichr()} to raise a \exception{ValueError} exception.
!
! % XXX is this still unimplemented?
! All this is the province of the still-unimplemented \pep{261}, ``Support
! for `wide' Unicode characters''; consult it for further details, and
! please offer comments on the PEP and on your experiences with the
! 2.2 beta releases.
! % XXX update previous line once 2.2 reaches beta or final.
! Another change is much simpler to explain. Since their introduction,
Unicode strings have supported an \method{encode()} method to convert
the string to a selected encoding such as UTF-8 or Latin-1. A
--- 874,892 ----
Python 2.2 can also be compiled to use UCS-4, 32-bit unsigned
integers, as its internal encoding by supplying
! \longprogramopt{enable-unicode=ucs4} to the configure script.
! (It's also possible to specify
! \longprogramopt{disable-unicode} to completely disable Unicode
! support.)
!
! When built to use UCS-4 (a ``wide Python''), the interpreter can
! natively handle Unicode characters from U+000000 to U+110000, so the
! range of legal values for the \function{unichr()} function is expanded
accordingly. Using an interpreter compiled to use UCS-2 (a ``narrow
Python''), values greater than 65535 will still cause
\function{unichr()} to raise a \exception{ValueError} exception.
! This is all described in \pep{261}, ``Support for `wide' Unicode
! characters''; consult it for further details.
! Another change is simpler to explain. Since their introduction,
Unicode strings have supported an \method{encode()} method to convert
the string to a selected encoding such as UTF-8 or Latin-1. A
***************
*** 929,934 ****
\begin{seealso}
! \seepep{261}{Support for `wide' Unicode characters}{PEP written by
! Paul Prescod. Not yet accepted or fully implemented.}
\end{seealso}
--- 930,935 ----
\begin{seealso}
! \seepep{261}{Support for `wide' Unicode characters}{Written by
! Paul Prescod.}
\end{seealso}
***************
*** 1075,1080 ****
more information about XML-RPC.
! \item The new \module{hmac} module implements implements the HMAC
algorithm described by \rfc{2104}.
\item The Python profiler has been extensively reworked and various
--- 1076,1098 ----
more information about XML-RPC.
! \item The new \module{hmac} module implements the HMAC
algorithm described by \rfc{2104}.
+ (Contributed by Gerhard H\"aring.)
+
+ \item Several functions that originally returned lengthy tuples now
+ return pseudo-sequences that still behave like tuples but also have
+ mnemonic attributes such as member{st_mtime} or \member{tm_year}.
+ The enhanced functions include \function{stat()},
+ \function{fstat()}, \function{statvfs()}, and \function{fstatvfs()}
+ in the \module{os} module, and \function{localtime()},
+ \function{gmtime()}, and \function{strptime()} in the \module{time}
+ module.
+
+ For example, to obtain a file's size using the old tuples, you'd end
+ up writing something like \code{file_size =
+ os.stat(filename)[stat.ST_SIZE]}, but now this can be written more
+ clearly as \code{file_size = os.stat(filename).st_size}.
+
+ The original patch for this feature was contributed by Nick Mathewson.
\item The Python profiler has been extensively reworked and various
***************
*** 1105,1109 ****
the \function{re.sub()} and \function{re.split()} functions have
been rewritten in C. Another contributed patch speeds up certain
! Unicode character ranges by a factor of two. (SRE is maintained by
Fredrik Lundh. The BIGCHARSET patch was contributed by Martin von
L\"owis.)
--- 1123,1130 ----
the \function{re.sub()} and \function{re.split()} functions have
been rewritten in C. Another contributed patch speeds up certain
! Unicode character ranges by a factor of two, and a new \method{finditer()}
! method that returns an iterator over all the non-overlapping matches in
! a given string.
! (SRE is maintained by
Fredrik Lundh. The BIGCHARSET patch was contributed by Martin von
L\"owis.)
***************
*** 1112,1116 ****
SMTP over TLS'', so it's now possible to encrypt the SMTP traffic
between a Python program and the mail transport agent being handed a
! message. (Contributed by Gerhard H\"aring.)
\item The \module{imaplib} module, maintained by Piers Lauder, has
--- 1133,1138 ----
SMTP over TLS'', so it's now possible to encrypt the SMTP traffic
between a Python program and the mail transport agent being handed a
! message. \module{smtplib} also supports SMTP authentication.
! (Contributed by Gerhard H\"aring.)
\item The \module{imaplib} module, maintained by Piers Lauder, has
***************
*** 1119,1122 ****
--- 1141,1145 ----
Baxter and Michel Pelletier.)
+ % XXX should the 'email' module get a section of its own?
\item The \module{rfc822} module's parsing of email addresses is now
compliant with \rfc{2822}, an update to \rfc{822}. (The module's
***************
*** 1303,1309 ****
file APIs. As MBCS is explicitly used by the file APIs, Python's
choice of ASCII as the default encoding turns out to be an
! annoyance.
! (Contributed by Mark Hammond with assistance from Marc-Andr\'e
! Lemburg.)
\item Large file support is now enabled on Windows. (Contributed by
--- 1326,1333 ----
file APIs. As MBCS is explicitly used by the file APIs, Python's
choice of ASCII as the default encoding turns out to be an
! annoyance. On Unix, the locale's character set is used if
! \function{locale.nl_langinfo(CODESET)} is available. (Windows
! support was contributed by Mark Hammond with assistance from
! Marc-Andr\'e Lemburg. Unix support was added by Martin von L\"owis.)
\item Large file support is now enabled on Windows. (Contributed by
***************
*** 1372,1378 ****
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, Michael McLay, Tim Peters, Jens
! Quade, Tom Reinhardt, Neil Schemenauer, Guido van Rossum.
\end{document}
--- 1396,1403 ----
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, Martin von L\"owis, Fredrik Lundh,
! Michael McLay, Nick Mathewson, Paul Moore, Tim Peters, Jens Quade, Tom
! Reinhardt, Neil Schemenauer, Guido van Rossum.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-10-30 14:35:06
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv9600
Modified Files:
python-22.tex
Log Message:
Various minor rewrites
Bump version number
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.42
retrieving revision 1.43
diff -C2 -r1.42 -r1.43
*** python-22.tex 2001/10/30 14:22:11 1.42
--- python-22.tex 2001/10/30 14:35:03 1.43
***************
*** 4,8 ****
\title{What's New in Python 2.2}
! \release{0.07}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
--- 4,8 ----
\title{What's New in Python 2.2}
! \release{0.08}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
***************
*** 392,411 ****
That is certainly clearer and easier to write than a pair of
\method{__getattr__}/\method{__setattr__} methods that check for the
! \member{size} attribute and handle it specially, while retrieving all
other attributes from the instance's \member{__dict__}. Accesses to
\member{size} are also the only ones which have to perform the work of
! calling a function, letting references to other attributes run at
their usual speed.
Finally, it's possible to constrain the list of attributes that can be
! referenced on an object using the new \member{__slots__} attribute.
Python objects are usually very dynamic; at any time it's possible to
define a new attribute on an instance by just doing
\code{obj.new_attr=1}. This is flexible and convenient, but this
flexibility can also lead to bugs, as when you meant to write
! \code{obj.template = 'a'} but make a typo and wrote
\code{obj.templtae} by accident.
! A new-style class can define a class variable named \member{__slots__}
to constrain the list of legal attribute names. An example will make
this clear:
--- 392,411 ----
That is certainly clearer and easier to write than a pair of
\method{__getattr__}/\method{__setattr__} methods that check for the
! \member{size} attribute and handle it specially while retrieving all
other attributes from the instance's \member{__dict__}. Accesses to
\member{size} are also the only ones which have to perform the work of
! calling a function, so references to other attributes run at
their usual speed.
Finally, it's possible to constrain the list of attributes that can be
! referenced on an object using the new \member{__slots__} class attribute.
Python objects are usually very dynamic; at any time it's possible to
define a new attribute on an instance by just doing
\code{obj.new_attr=1}. This is flexible and convenient, but this
flexibility can also lead to bugs, as when you meant to write
! \code{obj.template = 'a'} but made a typo and wrote
\code{obj.templtae} by accident.
! A new-style class can define a class attribute named \member{__slots__}
to constrain the list of legal attribute names. An example will make
this clear:
***************
*** 427,430 ****
--- 427,432 ----
\end{verbatim}
+ Note how you get an \exception{AttributeError} on the attempt to
+ assign to an attribute not listed in \member{__slots__}.
***************
*** 456,460 ****
machinery for the type handling is in \file{Objects/typeobject.c}, but
you should only resort to it after all other avenues have been
! exhausted (including posting a question to python-list or python-dev.)
--- 458,462 ----
machinery for the type handling is in \file{Objects/typeobject.c}, but
you should only resort to it after all other avenues have been
! exhausted, including posting a question to python-list or python-dev.
***************
*** 462,468 ****
\section{PEP 234: Iterators}
! A significant addition to 2.2 is an iteration interface at both the C
! and Python levels. Objects can define how they can be looped over by
! callers.
In Python versions up to 2.1, the usual way to make \code{for item in
--- 464,470 ----
\section{PEP 234: Iterators}
! Another significant addition to 2.2 is an iteration interface at both
! the C and Python levels. Objects can define how they can be looped
! over by callers.
In Python versions up to 2.1, the usual way to make \code{for item in
***************
*** 481,485 ****
wants to be looped over; the \var{index} parameter is essentially
meaningless, as the class probably assumes that a series of
! \method{__getitem__()} calls will be made, with \var{index}
incrementing by one each time. In other words, the presence of the
\method{__getitem__()} method doesn't mean that using \code{file[5]}
--- 483,487 ----
wants to be looped over; the \var{index} parameter is essentially
meaningless, as the class probably assumes that a series of
! \method{__getitem__()} calls will be made with \var{index}
incrementing by one each time. In other words, the presence of the
\method{__getitem__()} method doesn't mean that using \code{file[5]}
***************
*** 488,492 ****
In Python 2.2, iteration can be implemented separately, and
\method{__getitem__()} methods can be limited to classes that really
! do support random access. The basic idea of iterators is quite
simple. A new built-in function, \function{iter(obj)} or
\code{iter(\var{C}, \var{sentinel})}, is used to get an iterator.
--- 490,494 ----
In Python 2.2, iteration can be implemented separately, and
\method{__getitem__()} methods can be limited to classes that really
! do support random access. The basic idea of iterators is
simple. A new built-in function, \function{iter(obj)} or
\code{iter(\var{C}, \var{sentinel})}, is used to get an iterator.
***************
*** 504,511 ****
iterators can define a \code{tp_iternext} function.
! So what do iterators do? They have one required method,
! \method{next()}, which takes no arguments and returns the next value.
! When there are no more values to be returned, calling \method{next()}
! should raise the \exception{StopIteration} exception.
\begin{verbatim}
--- 506,513 ----
iterators can define a \code{tp_iternext} function.
! So, after all this, what do iterators actually do? They have one
! required method, \method{next()}, which takes no arguments and returns
! the next value. When there are no more values to be returned, calling
! \method{next()} should raise the \exception{StopIteration} exception.
\begin{verbatim}
***************
*** 528,532 ****
In 2.2, Python's \keyword{for} statement no longer expects a sequence;
! it expects something for which \function{iter()} will return something.
For backward compatibility and convenience, an iterator is
automatically constructed for sequences that don't implement
--- 530,534 ----
In 2.2, Python's \keyword{for} statement no longer expects a sequence;
! it expects something for which \function{iter()} will return an iterator.
For backward compatibility and convenience, an iterator is
automatically constructed for sequences that don't implement
***************
*** 537,540 ****
--- 539,543 ----
\begin{verbatim}
+ >>> L = [1,2,3]
>>> i = iter(L)
>>> a,b,c = i
***************
*** 581,584 ****
--- 584,588 ----
for line in file:
# do something for each line
+ ...
\end{verbatim}
***************
*** 608,612 ****
is returned to the caller. A later call to the same function will get
a fresh new set of local variables. But, what if the local variables
! weren't destroyed on exiting a function? What if you could later
resume the function where it left off? This is what generators
provide; they can be thought of as resumable functions.
--- 612,616 ----
is returned to the caller. A later call to the same function will get
a fresh new set of local variables. But, what if the local variables
! weren't thrown away on exiting a function? What if you could later
resume the function where it left off? This is what generators
provide; they can be thought of as resumable functions.
***************
*** 716,720 ****
\end{verbatim}
! The \function{find()} function returns the indexes at which the
substring ``or'' is found: 3, 23, 33. In the \keyword{if} statement,
\code{i} is first assigned a value of 3, but 3 is less than 5, so the
--- 720,724 ----
\end{verbatim}
! In Icon the \function{find()} function returns the indexes at which the
substring ``or'' is found: 3, 23, 33. In the \keyword{if} statement,
\code{i} is first assigned a value of 3, but 3 is less than 5, so the
***************
*** 729,734 ****
One novel feature of Python's interface as compared to
Icon's is that a generator's state is represented as a concrete object
! that can be passed around to other functions or stored in a data
! structure.
\begin{seealso}
--- 733,738 ----
One novel feature of Python's interface as compared to
Icon's is that a generator's state is represented as a concrete object
! (the iterator) that can be passed around to other functions or stored
! in a data structure.
\begin{seealso}
***************
*** 773,784 ****
In most cases, integers and long integers will now be treated
identically. You can still distinguish them with the
! \function{type()} built-in function, but that's rarely needed. The
! \function{int()} constructor will now return a long integer if the value
! is large enough.
\begin{seealso}
\seepep{237}{Unifying Long Integers and Integers}{Written by
! Moshe Zadka and Guido van Rossum. Implemented mostly by Guido van Rossum.}
\end{seealso}
--- 777,787 ----
In most cases, integers and long integers will now be treated
identically. You can still distinguish them with the
! \function{type()} built-in function, but that's rarely needed.
\begin{seealso}
\seepep{237}{Unifying Long Integers and Integers}{Written by
! Moshe Zadka and Guido van Rossum. Implemented mostly by Guido van
! Rossum.}
\end{seealso}
***************
*** 788,792 ****
\section{PEP 238: Changing the Division Operator}
! The most controversial change in Python 2.2 is the start of an effort
to fix an old design flaw that's been in Python from the beginning.
Currently Python's division operator, \code{/}, behaves like C's
--- 791,795 ----
\section{PEP 238: Changing the Division Operator}
! The most controversial change in Python 2.2 heralds the start of an effort
to fix an old design flaw that's been in Python from the beginning.
Currently Python's division operator, \code{/}, behaves like C's
***************
*** 801,805 ****
(The controversy is over whether this is \emph{really} a design flaw,
and whether it's worth breaking existing code to fix this. It's
! caused endless discussions on python-dev and in July erupted into an
storm of acidly sarcastic postings on \newsgroup{comp.lang.python}. I
won't argue for either side here and will stick to describing what's
--- 804,808 ----
(The controversy is over whether this is \emph{really} a design flaw,
and whether it's worth breaking existing code to fix this. It's
! caused endless discussions on python-dev, and in July 2001 erupted into an
storm of acidly sarcastic postings on \newsgroup{comp.lang.python}. I
won't argue for either side here and will stick to describing what's
***************
*** 826,830 ****
\item A new operator, \code{//}, is the floor division operator.
(Yes, we know it looks like \Cpp's comment symbol.) \code{//}
! \emph{always} returns the floor divison no matter what the types of
its operands are, so \code{1 // 2} is 0 and \code{1.0 // 2.0} is also
0.0.
--- 829,833 ----
\item A new operator, \code{//}, is the floor division operator.
(Yes, we know it looks like \Cpp's comment symbol.) \code{//}
! \emph{always} performs floor division no matter what the types of
its operands are, so \code{1 // 2} is 0 and \code{1.0 // 2.0} is also
0.0.
|
|
From: A.M. K. <aku...@us...> - 2001-10-30 14:22:21
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv6420
Modified Files:
python-22.tex
Log Message:
Corrections noted by Michael McLay
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -r1.41 -r1.42
*** python-22.tex 2001/10/29 20:37:47 1.41
--- python-22.tex 2001/10/30 14:22:11 1.42
***************
*** 223,230 ****
\begin{verbatim}
descriptor = obj.__class__.x
! descriptor.get(obj)
\end{verbatim}
! For methods, \method{descriptor.get} returns a temporary object that's
callable, and wraps up the instance and the method to be called on it.
This is also why static methods and class methods are now possible;
--- 223,230 ----
\begin{verbatim}
descriptor = obj.__class__.x
! descriptor.__get__(obj)
\end{verbatim}
! For methods, \method{descriptor.__get__} returns a temporary object that's
callable, and wraps up the instance and the method to be called on it.
This is also why static methods and class methods are now possible;
***************
*** 1370,1375 ****
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, Jens Quade, Tom Reinhardt,
! Neil Schemenauer, Guido van Rossum.
\end{document}
--- 1370,1375 ----
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, Michael McLay, Tim Peters, Jens
! Quade, Tom Reinhardt, Neil Schemenauer, Guido van Rossum.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-10-29 20:37:51
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv3981
Modified Files:
python-22.tex
Log Message:
dictionary -> dict
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.40
retrieving revision 1.41
diff -C2 -r1.40 -r1.41
*** python-22.tex 2001/10/29 18:09:42 1.40
--- python-22.tex 2001/10/29 20:37:47 1.41
***************
*** 164,168 ****
To make the set of types complete, new type objects such as
! \function{dictionary} and \function{file} have been added. Here's a
more interesting example, adding a \method{lock()} method to file
objects:
--- 164,168 ----
To make the set of types complete, new type objects such as
! \function{dict} and \function{file} have been added. Here's a
more interesting example, adding a \method{lock()} method to file
objects:
|
|
From: A.M. K. <aku...@us...> - 2001-10-29 18:09:47
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv18314
Modified Files:
python-22.tex
Log Message:
Fix two typos noted by Jens Quade
Bump version number
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.39
retrieving revision 1.40
diff -C2 -r1.39 -r1.40
*** python-22.tex 2001/10/29 15:47:33 1.39
--- python-22.tex 2001/10/29 18:09:42 1.40
***************
*** 4,8 ****
\title{What's New in Python 2.2}
! \release{0.06}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
--- 4,8 ----
\title{What's New in Python 2.2}
! \release{0.07}
\author{A.M. Kuchling}
\authoraddress{\email{aku...@me...}}
***************
*** 213,217 ****
\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
on \var{object} to \var{value}.
--- 213,217 ----
\item \method{__get__(\var{object})} is a method that retrieves the attribute value from \var{object}.
! \item \method{__set__(\var{object}, \var{value})} sets the attribute
on \var{object} to \var{value}.
***************
*** 833,837 ****
it using a \code{__future__} statement.
! \item By including a \code{from __future__ import true_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__}
--- 833,837 ----
it using a \code{__future__} statement.
! \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__}
***************
*** 1281,1284 ****
--- 1281,1291 ----
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
***************
*** 1363,1368 ****
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.
\end{document}
--- 1370,1375 ----
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, Jens Quade, Tom Reinhardt,
! Neil Schemenauer, Guido van Rossum.
\end{document}
|
|
From: A.M. K. <aku...@us...> - 2001-10-29 15:47:36
|
Update of /cvsroot/py-howto/pyhowto
In directory usw-pr-cvs1:/tmp/cvs-serv7014
Modified Files:
python-22.tex
Log Message:
Fix some markup errors noted by MH
Use attribute assignment to illustrate __slots__ raising an error
Index: python-22.tex
===================================================================
RCS file: /cvsroot/py-howto/pyhowto/python-22.tex,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -r1.38 -r1.39
*** python-22.tex 2001/10/26 20:37:55 1.38
--- python-22.tex 2001/10/29 15:47:33 1.39
***************
*** 322,331 ****
include a class multiple times if it's visited repeatedly. In the
above example, the list of visited classes is [\class{D}, \class{B},
! \class{A}, \class{C}, class{A}].
\item Scan the list for duplicated classes. If any are found, remove
all but one occurrence, leaving the \emph{last} one in the list. In
the above example, the list becomes [\class{D}, \class{B}, \class{C},
! class{A}] after dropping duplicates.
\end{enumerate}
--- 322,331 ----
include a class multiple times if it's visited repeatedly. In the
above example, the list of visited classes is [\class{D}, \class{B},
! \class{A}, \class{C}, \class{A}].
\item Scan the list for duplicated classes. If any are found, remove
all but one occurrence, leaving the \emph{last} one in the list. In
the above example, the list becomes [\class{D}, \class{B}, \class{C},
! \class{A}] after dropping duplicates.
\end{enumerate}
***************
*** 418,425 ****
>>> print obj.template
None
! >>> obj.template = 'Test' ; obj.name = 'abc'
>>> print obj.template
Test
! >>> obj.templtae
Traceback (most recent call last):
File "<stdin>", line 1, in ?
--- 418,425 ----
>>> print obj.template
None
! >>> obj.template = 'Test'
>>> print obj.template
Test
! >>> obj.templtae = None
Traceback (most recent call last):
File "<stdin>", line 1, in ?
***************
*** 1362,1366 ****
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, Jack Jansen,
Marc-Andr\'e Lemburg, Fredrik Lundh, Tim Peters, Tom Reinhardt, Neil
Schemenauer, Guido van Rossum.
--- 1362,1366 ----
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.
|