[Python-checkins] python/dist/src/Doc/whatsnew whatsnew23.tex,1.130,1.131
akuchling@users.sourceforge.net
akuchling@users.sourceforge.net
Fri, 21 Mar 2003 09:23:11 -0800
Update of /cvsroot/python/python/dist/src/Doc/whatsnew
In directory sc8-pr-cvs1:/tmp/cvs-serv6841
Modified Files:
whatsnew23.tex
Log Message:
Update datetime section a bit
Index: whatsnew23.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/whatsnew/whatsnew23.tex,v
retrieving revision 1.130
retrieving revision 1.131
diff -C2 -d -r1.130 -r1.131
*** whatsnew23.tex 13 Mar 2003 13:56:50 -0000 1.130
--- whatsnew23.tex 21 Mar 2003 17:23:07 -0000 1.131
***************
*** 1680,1685 ****
\subsection{Date/Time Type}
- % XXX This is out-of-date already: timetz and so on have gone away.
-
Date and time types suitable for expressing timestamps were added as
the \module{datetime} module. The types don't support different
--- 1680,1683 ----
***************
*** 1690,1697 ****
and year; \class{time}, consisting of hour, minute, and second; and
\class{datetime}, which contains all the attributes of both
! \class{date} and \class{time}. These basic types don't understand
! time zones, but there are subclasses named \class{timetz} and
! \class{datetimetz} that do. There's also a
! \class{timedelta} class representing a difference between two points
in time, and time zone logic is implemented by classes inheriting from
the abstract \class{tzinfo} class.
--- 1688,1693 ----
and year; \class{time}, consisting of hour, minute, and second; and
\class{datetime}, which contains all the attributes of both
! \class{date} and \class{time}. There's also a
! \class{timedelta} class representing differences between two points
in time, and time zone logic is implemented by classes inheriting from
the abstract \class{tzinfo} class.
***************
*** 1700,1704 ****
supplying keyword arguments to the appropriate constructor,
e.g. \code{datetime.date(year=1972, month=10, day=15)}, or by using
! one of a number of class methods. For example, the \method{today()}
class method returns the current local date.
--- 1696,1700 ----
supplying keyword arguments to the appropriate constructor,
e.g. \code{datetime.date(year=1972, month=10, day=15)}, or by using
! one of a number of class methods. For example, the \method{date.today()}
class method returns the current local date.
***************
*** 1733,1737 ****
result is the same as that of \method{isoformat()}). \class{date} and
\class{datetime} instances can be subtracted from each other, and
! added to \class{timedelta} instances.
For more information, refer to the \ulink{module's reference
--- 1729,1735 ----
result is the same as that of \method{isoformat()}). \class{date} and
\class{datetime} instances can be subtracted from each other, and
! added to \class{timedelta} instances. The largest missing feature is
! that there's no support for parsing strings and getting back a
! \class{date} or \class{datetime}.
For more information, refer to the \ulink{module's reference
***************
*** 1824,1837 ****
\section{Specialized Object Allocator (pymalloc)\label{section-pymalloc}}
! An experimental feature added to Python 2.1 was pymalloc, a
! specialized object allocator written by Vladimir Marangozov. Pymalloc
! is intended to be faster than the system \cfunction{malloc()} and
! to have less memory overhead for allocation patterns typical of Python
! programs. The allocator uses C's \cfunction{malloc()} function to get
! large pools of memory and then fulfills smaller memory requests from
! these pools.
In 2.1 and 2.2, pymalloc was an experimental feature and wasn't
! enabled by default; you had to explicitly turn it on by providing the
\longprogramopt{with-pymalloc} option to the \program{configure}
script. In 2.3, pymalloc has had further enhancements and is now
--- 1822,1836 ----
\section{Specialized Object Allocator (pymalloc)\label{section-pymalloc}}
! Pymalloc, a specialized object allocator written by Vladimir
! Marangozov, was a feature added to Python 2.1. Pymalloc is intended
! to be faster than the system \cfunction{malloc()} and to have less
! memory overhead for allocation patterns typical of Python programs.
! The allocator uses C's \cfunction{malloc()} function to get large
! pools of memory and then fulfills smaller memory requests from these
! pools.
In 2.1 and 2.2, pymalloc was an experimental feature and wasn't
! enabled by default; you had to explicitly enable it when compiling
! Python by providing the
\longprogramopt{with-pymalloc} option to the \program{configure}
script. In 2.3, pymalloc has had further enhancements and is now