[Python-checkins] python/dist/src/Misc NEWS,1.486,1.487
montanaro@users.sourceforge.net
montanaro@users.sourceforge.net
Fri, 20 Sep 2002 07:17:07 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv21093
Modified Files:
NEWS
Log Message:
ReST-ification of the NEWS file. While the total number of changes are
fairly large, most are caused by reformatting section and subsection
headings. The changes fall into the following categories:
* reformatted section and subsection headers.
* escaped isolated asterisks which would be interpreted as starting bold
or italic text (e.g. "void (*)(PyObject \*)").
* quoted stuff that looks like internal references but isn't
(e.g. ``PyCmp_``).
* changed visually balanced quotes to just use apostrophes
(e.g. "'string'" instead of "`string'").
* introduced and indenting multiline chunks of code.
* created one table (search for "New codecs").
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.486
retrieving revision 1.487
diff -C2 -d -r1.486 -r1.487
*** NEWS 17 Sep 2002 20:58:59 -0000 1.486
--- NEWS 20 Sep 2002 14:16:59 -0000 1.487
***************
*** 1,7 ****
What's New in Python 2.3 alpha 1?
- XXX Release date: DD-MMM-2002 XXX
=================================
Type/class unification and new-style classes
- Assignment to __class__ is disallowed if either the old and the new
--- 1,13 ----
+ +++++++++++
+ Python News
+ +++++++++++
+
What's New in Python 2.3 alpha 1?
=================================
+ *XXX Release date: DD-MMM-2002 XXX*
+
Type/class unification and new-style classes
+ --------------------------------------------
- Assignment to __class__ is disallowed if either the old and the new
***************
*** 57,60 ****
--- 63,67 ----
Core and builtins
+ -----------------
- Codec error handling callbacks (PEP 293) are implemented.
***************
*** 162,166 ****
although the language definition does not guarantee stability. A
potential drawback is that list.sort() may require temp space of
! len(list)*2 bytes (*4 on a 64-bit machine). It's therefore possible
for list.sort() to raise MemoryError now, even if a comparison function
does not. See <http://www.python.org/sf/587076> for full details.
--- 169,173 ----
although the language definition does not guarantee stability. A
potential drawback is that list.sort() may require temp space of
! len(list)*2 bytes (\*4 on a 64-bit machine). It's therefore possible
for list.sort() to raise MemoryError now, even if a comparison function
does not. See <http://www.python.org/sf/587076> for full details.
***************
*** 274,277 ****
--- 281,285 ----
Extension modules
+ -----------------
- cPickle.BadPickleGet is now a class.
***************
*** 325,328 ****
--- 333,337 ----
Library
+ -------
- mimetypes has two new functions: guess_all_extensions() which
***************
*** 470,473 ****
--- 479,483 ----
Tools/Demos
+ -----------
- The SGI demos (Demo/sgi) have been removed. Nobody thought they
***************
*** 486,489 ****
--- 496,500 ----
Build
+ -----
- The public Python C API will generally be declared using PyAPI_FUNC
***************
*** 551,554 ****
--- 562,566 ----
C API
+ -----
- The string object's layout has changed: the pointer member
***************
*** 594,599 ****
CHECKTYPES flag set. This is to better support proxies.
! - The type of tp_free has been changed from "void (*)(PyObject *)" to
! "void (*)(void *)".
- PyObject_Del, PyObject_GC_Del are now functions instead of macros.
--- 606,611 ----
CHECKTYPES flag set. This is to better support proxies.
! - The type of tp_free has been changed from "void (*)(PyObject \*)" to
! "void (*)(void \*)".
- PyObject_Del, PyObject_GC_Del are now functions instead of macros.
***************
*** 611,615 ****
without going through the buffer API.
! - The enumerators of cmp_op have been renamed to use the prefix PyCmp_.
- An old #define of ANY as void has been removed from pyport.h. This
--- 623,627 ----
without going through the buffer API.
! - The enumerators of cmp_op have been renamed to use the prefix ``PyCmp_``.
- An old #define of ANY as void has been removed from pyport.h. This
***************
*** 625,628 ****
--- 637,641 ----
New platforms
+ -------------
- AtheOS is now supported.
***************
*** 633,638 ****
--- 646,655 ----
Tests
+ -----
+
+ Yet to be written.
Windows
+ -------
- Sometimes the uninstall executable (UNWISE.EXE) vanishes. One cause
***************
*** 682,692 ****
Mac
What's New in Python 2.2 final?
- Release date: 21-Dec-2001
===============================
Type/class unification and new-style classes
- pickle.py, cPickle: allow pickling instances of new-style classes
--- 699,714 ----
Mac
+ ----
+
+ Yet to be written.
What's New in Python 2.2 final?
===============================
+ *Release date: 21-Dec-2001*
+
Type/class unification and new-style classes
+ --------------------------------------------
- pickle.py, cPickle: allow pickling instances of new-style classes
***************
*** 694,697 ****
--- 716,720 ----
Core and builtins
+ -----------------
- weakref proxy object: when comparing, unwrap both arguments if both
***************
*** 699,702 ****
--- 722,726 ----
Extension modules
+ -----------------
- binascii.b2a_base64(): fix a potential buffer overrun when encoding
***************
*** 710,713 ****
--- 734,738 ----
Library
+ -------
- dumbdbm.py: fixed a dumb old bug (the file didn't get synched at
***************
*** 723,736 ****
--- 748,767 ----
Tools/Demos
+ -----------
Build
+ -----
C API
+ -----
New platforms
+ -------------
Tests
+ -----
Windows
+ -------
- distutils package: fixed broken Windows installers (bdist_wininst).
***************
*** 746,749 ****
--- 777,781 ----
Mac
+ ----
- The Carbon toolbox modules have been upgraded to Universal Headers
***************
*** 753,760 ****
What's New in Python 2.2c1?
- Release date: 14-Dec-2001
===========================
Type/class unification and new-style classes
- Guido's tutorial introduction to the new type/class features has
--- 785,794 ----
What's New in Python 2.2c1?
===========================
+ *Release date: 14-Dec-2001*
+
Type/class unification and new-style classes
+ --------------------------------------------
- Guido's tutorial introduction to the new type/class features has
***************
*** 799,802 ****
--- 833,837 ----
Core and builtins
+ -----------------
- -Qnew now works as documented in PEP 238: when -Qnew is passed on
***************
*** 816,823 ****
--- 851,860 ----
Extension modules
+ -----------------
- gc.get_referents was renamed to gc.get_referrers.
Library
+ -------
- Functions in the os.spawn() family now release the global interpreter
***************
*** 841,844 ****
--- 878,882 ----
Tools/Demos
+ -----------
- A new script called Tools/scripts/google.py was added, which fires
***************
*** 846,849 ****
--- 884,888 ----
Build
+ -----
- Note that release builds of Python should arrange to define the
***************
*** 860,863 ****
--- 899,903 ----
C API
+ -----
- New function PyDict_MergeFromSeq2() exposes the builtin dict
***************
*** 873,882 ****
--- 913,926 ----
New platforms
+ -------------
Tests
+ -----
Windows
+ -------
Mac
+ ----
- In unix-Python on Mac OS X (and darwin) sys.platform is now "darwin",
***************
*** 890,897 ****
What's New in Python 2.2b2?
- Release date: 16-Nov-2001
===========================
Type/class unification and new-style classes
- Multiple inheritance mixing new-style and classic classes in the
--- 934,943 ----
What's New in Python 2.2b2?
===========================
+ *Release date: 16-Nov-2001*
+
Type/class unification and new-style classes
+ --------------------------------------------
- Multiple inheritance mixing new-style and classic classes in the
***************
*** 927,930 ****
--- 973,977 ----
Core and builtins
+ -----------------
- Assignment to __debug__ raises SyntaxError at compile-time. This
***************
*** 936,939 ****
--- 983,987 ----
Extension modules
+ -----------------
- mmap has a new keyword argument, "access", allowing a uniform way for
***************
*** 962,965 ****
--- 1010,1014 ----
Library
+ -------
- tkFileDialog exposes a Directory class and askdirectory
***************
*** 992,996 ****
- mimetypes.py has optional support for non-standard, but commonly
found types. guess_type() and guess_extension() now accept an
! optional `strict' flag, defaulting to true, which controls whether
recognize non-standard types or not. A few non-standard types we
know about have been added. Also, when run as a script, there are
--- 1041,1045 ----
- mimetypes.py has optional support for non-standard, but commonly
found types. guess_type() and guess_extension() now accept an
! optional 'strict' flag, defaulting to true, which controls whether
recognize non-standard types or not. A few non-standard types we
know about have been added. Also, when run as a script, there are
***************
*** 1001,1005 ****
- email.Utils.formatdate() now produces the preferred RFC 2822 style
dates with numeric timezones (it used to produce obsolete dates
! hard coded to "GMT" timezone). An optional `localtime' flag is
added to produce dates in the local timezone, with daylight savings
time properly taken into account.
--- 1050,1054 ----
- email.Utils.formatdate() now produces the preferred RFC 2822 style
dates with numeric timezones (it used to produce obsolete dates
! hard coded to "GMT" timezone). An optional 'localtime' flag is
added to produce dates in the local timezone, with daylight savings
time properly taken into account.
***************
*** 1011,1016 ****
--- 1060,1067 ----
Tools/Demos
+ -----------
Build
+ -----
- The dbm module is built using libdb1 if available. The bsddb module
***************
*** 1020,1023 ****
--- 1071,1075 ----
C API
+ -----
- New function PySequence_Fast_GET_SIZE() returns the size of a non-
***************
*** 1038,1041 ****
--- 1090,1094 ----
New platforms
+ -------------
- We've finally confirmed that this release builds on HP-UX 11.00,
***************
*** 1048,1051 ****
--- 1101,1105 ----
Tests
+ -----
- Added a test script for the curses module. It isn't run automatically;
***************
*** 1053,1058 ****
--- 1107,1114 ----
Windows
+ -------
Mac
+ ----
- PythonScript has been moved to unsupported and is slated to be
***************
*** 1069,1076 ****
What's New in Python 2.2b1?
- Release date: 19-Oct-2001
===========================
Type/class unification and new-style classes
- New-style classes are now always dynamic (except for built-in and
--- 1125,1134 ----
What's New in Python 2.2b1?
===========================
+ *Release date: 19-Oct-2001*
+
Type/class unification and new-style classes
+ --------------------------------------------
- New-style classes are now always dynamic (except for built-in and
***************
*** 1091,1094 ****
--- 1149,1153 ----
Core and builtins
+ -----------------
- A very subtle syntactical pitfall in list comprehensions was fixed.
***************
*** 1128,1131 ****
--- 1187,1191 ----
Extension modules
+ -----------------
- thread.start_new_thread() now returns the thread ID (previously None).
***************
*** 1162,1165 ****
--- 1222,1226 ----
Library
+ -------
- doctest now excludes functions and classes not defined by the module
***************
*** 1205,1209 ****
finish_request() returns. (Not when it errors out though.)
! - The nntplib module's NNTP.body() method has grown a `file' argument
to allow saving the message body to a file.
--- 1266,1270 ----
finish_request() returns. (Not when it errors out though.)
! - The nntplib module's NNTP.body() method has grown a 'file' argument
to allow saving the message body to a file.
***************
*** 1222,1225 ****
--- 1283,1287 ----
Tools/Demos
+ -----------
- Demo/dns was removed. It no longer serves any purpose; a package
***************
*** 1231,1234 ****
--- 1293,1297 ----
Build
+ -----
- configure will use CXX in LINKCC if CXX is used to build main() and
***************
*** 1236,1239 ****
--- 1299,1303 ----
C API
+ -----
- The documentation for the tp_compare slot is updated to require that
***************
*** 1258,1265 ****
--- 1322,1332 ----
New platforms
+ -------------
Tests
+ -----
Windows
+ -------
- Installer: If you install IDLE, and don't disable file-extension
***************
*** 1270,1296 ****
Scott. Note that SIGBREAK is unique to Windows. The default SIGBREAK
action remains to call Win32 ExitProcess(). This can be changed via
! signal.signal(). For example:
! # Make Ctrl+Break raise KeyboardInterrupt, like Python's default Ctrl+C
! # (SIGINT) behavior.
! import signal
! signal.signal(signal.SIGBREAK,
! signal.default_int_handler)
! try:
! while 1:
! pass
! except KeyboardInterrupt:
! # We get here on Ctrl+C or Ctrl+Break now; if we had not changed
! # SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
! # program without the possibility for any Python-level cleanup).
! print "Clean exit"
What's New in Python 2.2a4?
- Release date: 28-Sep-2001
===========================
Type/class unification and new-style classes
- pydoc and inspect are now aware of new-style classes;
--- 1337,1364 ----
Scott. Note that SIGBREAK is unique to Windows. The default SIGBREAK
action remains to call Win32 ExitProcess(). This can be changed via
! signal.signal(). For example: ::
! # Make Ctrl+Break raise KeyboardInterrupt, like Python's default Ctrl+C
! # (SIGINT) behavior.
! import signal
! signal.signal(signal.SIGBREAK, signal.default_int_handler)
! try:
! while 1:
! pass
! except KeyboardInterrupt:
! # We get here on Ctrl+C or Ctrl+Break now; if we had not changed
! # SIGBREAK, only on Ctrl+C (and Ctrl+Break would terminate the
! # program without the possibility for any Python-level cleanup).
! print "Clean exit"
What's New in Python 2.2a4?
===========================
+ *Release date: 28-Sep-2001*
+
Type/class unification and new-style classes
+ --------------------------------------------
- pydoc and inspect are now aware of new-style classes;
***************
*** 1363,1366 ****
--- 1431,1435 ----
Core
+ ----
- file.writelines() now accepts any iterable object producing strings.
***************
*** 1382,1385 ****
--- 1451,1455 ----
Library
+ -------
- StringIO.StringIO instances and cStringIO.StringIO instances support
***************
*** 1429,1434 ****
--- 1499,1506 ----
Tools
+ -----
Build
+ -----
- Large file support (LFS) is now automatic when the platform supports
***************
*** 1451,1454 ****
--- 1523,1527 ----
C API
+ -----
- The "structmember" API now supports some new flag bits to deny read
***************
*** 1456,1459 ****
--- 1529,1533 ----
New platforms
+ -------------
- Compaq's iPAQ handheld, running the "familiar" Linux distribution
***************
*** 1461,1464 ****
--- 1535,1539 ----
Tests
+ -----
- The "classic" standard tests, which work by comparing stdout to
***************
*** 1477,1480 ****
--- 1552,1556 ----
Windows
+ -------
- Large file support now also works for files > 4GB, on filesystems
***************
*** 1484,1491 ****
What's New in Python 2.2a3?
- Release Date: 07-Sep-2001
===========================
Core
- Conversion of long to float now raises OverflowError if the long is too
--- 1560,1569 ----
What's New in Python 2.2a3?
===========================
+ *Release Date: 07-Sep-2001*
+
Core
+ ----
- Conversion of long to float now raises OverflowError if the long is too
***************
*** 1529,1540 ****
also warns about classic division for float and complex arguments
(for use with fixdiv.py).
! [Note: the remainder of this paragraph (preserved below) became
! obsolete in 2.2c1 -- -Qnew has global effect in 2.2]
! <obsolete>
! Using -Qnew is questionable; it turns on new division by default, but
! only in the __main__ module. You can usefully combine -Qwarn or
! -Qwarnall and -Qnew: this gives the __main__ module new division, and
! warns about classic division everywhere else.
! </obsolete>
- Many built-in types can now be subclassed. This applies to int,
--- 1607,1617 ----
also warns about classic division for float and complex arguments
(for use with fixdiv.py).
! [Note: the remainder of this item (preserved below) became
! obsolete in 2.2c1 -- -Qnew has global effect in 2.2] ::
!
! Using -Qnew is questionable; it turns on new division by default, but
! only in the __main__ module. You can usefully combine -Qwarn or
! -Qwarnall and -Qnew: this gives the __main__ module new division, and
! warns about classic division everywhere else.
- Many built-in types can now be subclassed. This applies to int,
***************
*** 1572,1575 ****
--- 1649,1653 ----
Library
+ -------
- telnetlib includes symbolic names for the options, and support for
***************
*** 1605,1608 ****
--- 1683,1687 ----
Tools
+ -----
- Tools/scripts/fixdiv.py has been added which can be used to fix
***************
*** 1610,1613 ****
--- 1689,1693 ----
Build
+ -----
- If you are an adventurous person using Mac OS X you may want to look at
***************
*** 1617,1620 ****
--- 1697,1701 ----
C API
+ -----
- New function PyObject_Dir(obj), like Python __builtin__.dir(obj).
***************
*** 1622,1631 ****
- Note that PyLong_AsDouble can fail! This has always been true, but no
callers checked for it. It's more likely to fail now, because overflow
! errors are properly detected now. The proper way to check:
! double x = PyLong_AsDouble(some_long_object);
! if (x == -1.0 && PyErr_Occurred()) {
! /* The conversion failed. */
! }
- The GC API has been changed. Extensions that use the old API will still
--- 1703,1712 ----
- Note that PyLong_AsDouble can fail! This has always been true, but no
callers checked for it. It's more likely to fail now, because overflow
! errors are properly detected now. The proper way to check: ::
! double x = PyLong_AsDouble(some_long_object);
! if (x == -1.0 && PyErr_Occurred()) {
! /* The conversion failed. */
! }
- The GC API has been changed. Extensions that use the old API will still
***************
*** 1651,1654 ****
--- 1732,1736 ----
New platforms
+ -------------
- Stephen Hansen contributed patches sufficient to get a clean compile
***************
*** 1659,1664 ****
--- 1741,1748 ----
Tests
+ -----
Windows
+ -------
- Large file support is now enabled on Win32 platforms as well as on
***************
*** 1677,1684 ****
What's New in Python 2.2a2?
- Release Date: 22-Aug-2001
===========================
Build
- Tim Peters developed a brand new Windows installer using Wise 8.1,
--- 1761,1770 ----
What's New in Python 2.2a2?
===========================
+ *Release Date: 22-Aug-2001*
+
Build
+ -----
- Tim Peters developed a brand new Windows installer using Wise 8.1,
***************
*** 1696,1702 ****
- The NeXT platform is no longer supported.
! - The `new' module is now statically linked.
Tools
- The new Tools/scripts/cleanfuture.py can be used to automatically
--- 1782,1789 ----
- The NeXT platform is no longer supported.
! - The 'new' module is now statically linked.
Tools
+ -----
- The new Tools/scripts/cleanfuture.py can be used to automatically
***************
*** 1705,1708 ****
--- 1792,1796 ----
Tests
+ -----
- regrtest.py now knows which tests are expected to be skipped on some
***************
*** 1715,1718 ****
--- 1803,1807 ----
Core
+ ----
- The floor division operator // has been added as outlined in PEP
***************
*** 1754,1757 ****
--- 1843,1847 ----
Library
+ -------
- New class Differ and new functions ndiff() and restore() in difflib.py.
***************
*** 1771,1781 ****
- Added Ka-Ping Yee's cgitb.py module.
! - The `new' module now exposes the CO_xxx flags.
- The gc module offers the get_referents function.
New platforms
C API
- Two new APIs PyOS_snprintf() and PyOS_vsnprintf() were added
--- 1861,1873 ----
- Added Ka-Ping Yee's cgitb.py module.
! - The 'new' module now exposes the CO_xxx flags.
- The gc module offers the get_referents function.
New platforms
+ -------------
C API
+ -----
- Two new APIs PyOS_snprintf() and PyOS_vsnprintf() were added
***************
*** 1800,1803 ****
--- 1892,1896 ----
Windows
+ -------
- "import module" now compiles module.pyw if it exists and nothing else
***************
*** 1806,1813 ****
What's New in Python 2.2a1?
- Release date: 18-Jul-2001
===========================
Core
- TENTATIVELY, a large amount of code implementing much of what's
--- 1899,1908 ----
What's New in Python 2.2a1?
===========================
+ *Release date: 18-Jul-2001*
+
Core
+ ----
- TENTATIVELY, a large amount of code implementing much of what's
***************
*** 1855,1866 ****
and .decode() columns indicate the type of the returned objects):
! Name | .encode() | .decode() | Description
! ----------------------------------------------------------------------
! uu | string | string | UU codec (e.g. for email)
! base64 | string | string | base64 codec
! quopri | string | string | quoted-printable codec
! zlib | string | string | zlib compression
! hex | string | string | 2-byte hex codec
! rot-13 | string | Unicode | ROT-13 Unicode charmap codec
- Some operating systems now support the concept of a default Unicode
--- 1950,1968 ----
and .decode() columns indicate the type of the returned objects):
! +---------+-----------+-----------+-----------------------------+
! |Name | .encode() | .decode() | Description |
! +=========+===========+===========+=============================+
! |uu | string | string | UU codec (e.g. for email) |
! +---------+-----------+-----------+-----------------------------+
! |base64 | string | string | base64 codec |
! +---------+-----------+-----------+-----------------------------+
! |quopri | string | string | quoted-printable codec |
! +---------+-----------+-----------+-----------------------------+
! |zlib | string | string | zlib compression |
! +---------+-----------+-----------+-----------------------------+
! |hex | string | string | 2-byte hex codec |
! +---------+-----------+-----------+-----------------------------+
! |rot-13 | string | Unicode | ROT-13 Unicode charmap codec|
! +---------+-----------+-----------+-----------------------------+
- Some operating systems now support the concept of a default Unicode
***************
*** 1935,1939 ****
- The following functions were generalized to work nicely with iterator
! arguments:
map(), filter(), reduce(), zip()
list(), tuple() (PySequence_Tuple() and PySequence_Fast() in C API)
--- 2037,2042 ----
- The following functions were generalized to work nicely with iterator
! arguments: ::
!
map(), filter(), reduce(), zip()
list(), tuple() (PySequence_Tuple() and PySequence_Fast() in C API)
***************
*** 1943,1947 ****
'x in y' and 'x not in y' (PySequence_Contains() in C API)
operator.countOf() (PySequence_Count() in C API)
! right-hand side of assignment statements with multiple targets, such as
x, y, z = some_iterable_object_returning_exactly_3_values
--- 2046,2050 ----
'x in y' and 'x not in y' (PySequence_Contains() in C API)
operator.countOf() (PySequence_Count() in C API)
! right-hand side of assignment statements with multiple targets, such as ::
x, y, z = some_iterable_object_returning_exactly_3_values
***************
*** 1967,1970 ****
--- 2070,2074 ----
Library
+ -------
- The constants ascii_letters, ascii_lowercase. and ascii_uppercase
***************
*** 2014,2017 ****
--- 2118,2122 ----
Tests
+ -----
- New test_mutants.py runs dict comparisons where the key and value
***************
*** 2025,2029 ****
--- 2130,2139 ----
C API
+ -----
- Removed the unused last_is_sticky argument from the internal
_PyTuple_Resize(). If this affects you, you were cheating.
+
+ ----
+
+ **(For information about older versions, consult the HISTORY file.)**