Tone down math.fsum warning.
[python.git] / Misc / NEWS
blob8aa006a4713475e854ed46e3a6cc6ecd9bd8dab4
1 +++++++++++
2 Python News
3 +++++++++++
5 (editors: check NEWS.help for information about editing NEWS using ReST.)
7 What's New in Python 2.6 beta 3?
8 ================================
10 *Release date: XX-Aug-2008*
12 Core and Builtins
13 -----------------
15 - Issue #3479: On platforms where sizeof(int) is smaller than sizeof(long)
16   (64bit Unix, for example), unichr() would truncate its argument and return
17   u'\x00' for unichr(2**32). Now it properly raises an OverflowError.
19 - Apply security patches from Apple.
21 - Issue #2542: Now that issubclass() may call arbitrary code, ensure that
22   PyErr_ExceptionMatches returns 0 when an exception occurs there.
24 - Issue #1819: function calls with several named parameters are now on
25   average 35% faster (as measured by pybench).
27 - Issue #2378: An unexpected UnboundLocalError or NameError could appear when
28   the python debugger steps into a class statement: the free variables (local
29   variables defined in an outer scope) would be deleted from the outer scope.
31 - Issue #2620: Overflow checking when allocating or reallocating memory
32   was not always being done properly in some python types and extension
33   modules.  PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
34   all been updated to perform better checks and places in the code that
35   would previously leak memory on the error path when such an allocation
36   failed have been fixed.
38 Library
39 -------
41 - Issue #2523: Fix quadratic behaviour when read()ing a binary file without
42   asking for a specific length.
44 - Issue #3449: Update decimal module to use most recent specification
45   (v. 1.68) and tests (v. 2.58) from IBM.
47 - Issue 3437: Bug fix in robotparser parsing of Allow: lines.
49 - Issue 1592:  Improve error reporting when operations are attempted
50   on a closed shelf.
52 - Deprecate the "ast" parser function aliases.
54 - Issue #3120: On 64-bit Windows the subprocess module was truncating handles.
56 - Issue #3303: Fix a crash in locale.strcoll() when calling it with
57   invalid arguments.
59 - Issue #3302: Fix several crashes when calling locale's gettext functions
60   with None arguments.
62 - Issue #3389: Allow resolving dotted names for handlers in logging
63   configuration files.
65 - Deprecate the sunaudio module for removal in Python 3.0.
67 - Issue #3394: zipfile.writestr sets external attributes when passed a
68   file name rather than a ZipInfo instance, so files are extracted with
69   mode 0600 rather than 000 under Unix.
72 What's New in Python 2.6 beta 2?
73 ================================
75 *Release date: 17-Jul-2008*
77 Core and Builtins
78 -----------------
80 - Issue #3156: Fix inconsistent behavior of the bytearray type: all
81   its methods now allow for items objects that can be converted to
82   an integer using operator.index().
84 - Issue #3360: Fix incorrect parsing of '020000000000.0', which
85   produced a ValueError instead of giving the correct float.
87 - Issue #3083: Add alternate (#) formatting for bin, oct, hex output
88   for str.format().  This adds the prefix 0b, 0o, or 0x, respectively.
90 - Issue #3008: the float type has a new instance method 'float.hex'
91   and a new class method 'float.fromhex' to convert floating-point
92   numbers to and from hexadecimal strings, respectively.
94 - Issue #2235: __hash__ is once again inherited by default. To allow
95   collections.Hashable to remain meaningful in the presence of the
96   default hash implementation (object.__hash__), it is now possible
97   to explicit block inheritance of hash by setting __hash__=None at
98   the Python level, or tp_hash=PyObject_HashNotImplemented at the C
99   level.
101 - Issue #3221: Issue a RuntimeWarning instead of raising SystemError if
102   the parent module cannot be found while performing an absolute import.
103   This means that an incorrectly defined __package__ attribute will
104   now only prevent relative imports in that module rather than causing
105   all imports from that module to fail.
107 - Issue #2517: Allow unicode messages in Exceptions again by correctly
108   bypassing the instance dictionary when looking up __unicode__ on
109   new-style classes.
111 - Issue #3242: Fix a crash inside the print statement, if sys.stdout is
112   set to a custom object whose write() method happens to install
113   another file in sys.stdout.
115 - Issue #3088: Corrected a race condition in classes derived from
116   threading.local: the first member set by a thread could be saved in
117   another thread's dictionary.
119 - Issue #3004: Minor change to slice.indices(): the start and stop
120   arguments are now treated identically, making the behaviour easier
121   to describe and understand.  For example, slice(None, -10,
122   1).indices(9) now returns (0, 0, 1) instead of (0, -1, 1), and
123   slice(None, 10, -1).indices(10) returns (9, 9, -1) instead of (9,
124   10, -1).
126 - Issue #3219: Calling a function with repeated keyword arguments,
127   f(a=2, a=23), would not cause a syntax error.  This was a regression
128   from 2.4 caused by the switch to the new compiler.
130 - Issue #2862: Make int and float freelist management consistent with
131   other freelists.  Changes their CompactFreeList apis into
132   ClearFreeList apis and calls them via gc.collect().
134 Library
135 -------
137 - Issue #3395: fix reference in test_multiprocessing to old debugInfo method
139 - Issue #3312: Fix two crashes in sqlite3.
141 - Issue #1608818: Fix misbehavior in os.listdir() if readdir() fails.
143 - Issue #3125: Remove copy_reg in multiprocessing and replace it with
144   ForkingPickler.register() to resolve conflict with ctypes.
146 - Issue #3090: Fixed ARCHFLAGS parsing on OS/X
148 - Issue #3313: Fixed a crash when a failed dlopen() call does not set
149   a valid dlerror() message.
151 - Issue #3258: Fixed a crash when a ctypes POINTER type to an
152   incomplete structure was created.
154 - Issue #3339: dummy_thread.acquire() should not return None.
156 - Issue #3285: Fractions from_float() and from_decimal() accept Integral arguments.
158 - Issue #3301: Bisect module behaved badly when lo was negative.
160 - Issue #839496: SimpleHTTPServer used to open text files in text mode. This is
161   both unnecessary (HTTP allows text content to be sent in several forms) and
162   wrong because the actual transmitted size could differ from the
163   content-length.  The problem had been corrected in the 2.4 branch, but never
164   merged into trunk.
166 - Issue #2663: add filtering capability to shutil.copytree().
168 - Issue #1622: Correct interpretation of various ZIP header fields.
170 - Issue #1526: Allow more than 64k files to be added to Zip64 file.
172 - Issue #1746: Correct handling of zipfile archive comments (previously
173   archives with comments over 4k were flagged as invalid). Allow writing
174   Zip files with archives by setting the 'comment' attribute of a ZipFile.
176 - Issue #449227: The rlcompleter module now adds "(" to callable objects
177   when completed.
179 - Issue #3190: Pydoc now hides the automatic module attribute __package__ (the
180   handling is now the same as that of other special attributes like __name__).
182 - Issue #2885 (partial): The urllib.urlopen() function has been deprecated for
183   removal in Python 3.0 in favor of urllib2.urlopen().
185 - Issue #2113: Fix error in subprocess.Popen if the select system call is
186   interrupted by a signal.
188 - Issue #3309: Fix bz2.BZFile iterator to release its internal lock
189   properly when raising an exception due to the bz2file being closed.
190   Prevents a deadlock.
192 - Issue #3094: httplib.HTTPSConnection Host: headers no longer include the
193   redundant ":443" port number designation when the connection is using the
194   default https port (443).
196 - Issue #874900: after an os.fork() call the threading module state is cleaned
197   up in the child process to prevent deadlock and report proper thread counts
198   if the new process uses the threading module.
200 Tests
201 -----
203 - test.test_support.catch_warning now keeps track of all warnings it sees
204   and is now better documented. Explicit unit tests for this context manager
205   have been added to test_warnings.
207 Build
208 -----
210 - Issue #3215: Build sqlite3 as sqlite3.dll, not sqlite3.pyd.
213 Documentation
214 -------------
216 - Document that robotparser has been renamed to urllib.robotparser in
217   Python 3.0.
219 - Document that urlparse has been renamed to urllib.parse in Python 3.0.
221 - Document that urllib2 is split across multiple modules and renamed in
222   Python 3.0.
224 - Document that urllib is split across multiple modules and renamed in
225   Python 3.0.
228 What's New in Python 2.6 beta 1?
229 ================================
231 *Release date: 18-June-2008*
233 Core and Builtins
234 -----------------
236 - Issue #3211: warnings.warn_explicit() did not guard against its 'registry'
237   argument being anything other than a dict or None. Also fixed a bug in error
238   handling when 'message' and 'category' were both set to None, triggering a
239   bus error.
241 - Issue #3100: Corrected a crash on deallocation of a subclassed weakref which
242   holds the last (strong) reference to its referent.
244 - Add future_builtins.ascii().
246 - Several set methods now accept multiple arguments:  update(), union(),
247   intersection(), intersection_update(), difference(), and difference_update().
249 - Issue #2898: Added sys.getsizeof() to retrieve size of objects in bytes.
251 - New environment variable PYTHONIOENCODING.
253 - Patch #2488: Add sys.maxsize.
255 - Issue #2353: file.xreadlines() now emits a Py3k warning.
257 - Issue #2863: generators now have a ``gen.__name__`` attribute that
258   equals ``gen.gi_code.co_name``, like ``func.__name___`` that equals
259   ``func.func_code.co_name``.  The repr() of a generator now also
260   contains this name.
262 - Issue #2831: enumerate() now has a ``start`` argument.
264 - Issue #2801: fix bug in the float.is_integer method where a
265   ValueError was sometimes incorrectly raised.
267 - Issue #2790: sys.flags was not properly exposing its bytes_warning
268   attribute.
270 - Issue #2196: hasattr() now lets exceptions which do not inherit
271   Exception (KeyboardInterrupt, and SystemExit) propagate instead of
272   ignoring them.
274 - Added checks for integer overflows, contributed by Google. Some are
275   only available if asserts are left in the code, in cases where they
276   can't be triggered from Python code.
279 Extension Modules
280 -----------------
282 - Issue #3116:  marshal.dumps() had quadratic behavior for strings > 32Mb.
284 - Issue #2138: Add factorial() to the math module.
286 - The heapq module does comparisons using LT instead of LE.  This
287   makes its implementation match that used by list.sort().
289 - Issue #2819: add full-precision summation function to math module,
290   based on Hettinger's ASPN Python Cookbook recipe.
292 - Issue #2592: delegate nb_index and the floor/truediv slots in
293   weakref.proxy.
295 - Support os.O_ASYNC and fcntl.FASYNC if the constants exist on the
296   platform.
298 - Support for Windows 9x has been removed from the winsound module.
300 - bsddb module updated to version 4.7.0.
301   http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.0
303 - Issue #2858: Fix potential memory corruption when
304   bsddb.db.DBEnv.lock_get and other bsddb.db object constructors
305   raised an exception.
307 - Issue #2669: bsddb/__init__.py iteration no longer silently fails when
308   the database has changed size during iteration.  It now raises a
309   RuntimeError in the same manner as a dictionary.
311 - Issue #2870: cmathmodule.c compile error.
313 - Added a threading.Thread.getIdent() method.
315 Library
316 -------
318 - logging.config: Removed out-of-date comment in _install_handlers and
319   used issubclass in place of equality comparison of classes.
321 - Issue #2722: Now the os.getcwd() supports very long path names.
323 - Issue #2888: Fixed the behaviour of pprint when working with nested
324   structures, to match the behaviour of 2.5 and 3.0 (now follows the common
325   sense).
327 - Issue #1817: cgi now correctly handles the querystring on POST requests
329 - Issue #3136: fileConfig()'s disabling of old loggers is now conditional via
330   an optional disable_existing_loggers parameter, but the default value is
331   such that the old behaviour is preserved. Thanks to Leandro Lucarella for
332   the patch.
334 - Issue #3126: StreamHandler and FileHandler check before calling "flush" and
335   "close" that the stream object has these, using hasattr (thanks to bobf for
336   the patch).
338 - Issue #2912: platform.uname now tries to determine unknown information even if
339   os.uname exists.
341 - The rfc822 module has been deprecated for removal in 3.0.
343 - The mimetools module has been deprecated for removal in 3.0.
345 - The ctypes.byref function now takes an optional second parameter
346   which allows to specify an offset in bytes for the constructed
347   pointer-like object.
349 - Added the ast module.
351 - Added the multiprocessing module, PEP 371.
353 - Factored out the indentation cleaning from inspect.getdoc() into
354   inspect.cleandoc() to ease standalone use.
356 - Issue #1798: Add ctypes calling convention that allows safe access
357   to errno.
359 - Issue #2404: ctypes objects support the new pep3118 buffer interface.
361 - Patch #2125: Add GetInteger and GetString methods for
362   msilib.Record objects.
364 - Issue #2782: The datetime module's strftime methods now accept
365   unicode format strings just as time.strftime always has.
367 - The sgmllib and htmllib modules have been deprecated for removal
368   in Python 3.0.
370 - Issue #3011: locale module alias table was updated to the latest
371   version from the X.org locale.alias file.
373 - Issue #1797 (partial fix): ctypes NULL function pointers have a
374   False boolean value now.
376 - Issue #2985: Allow 64-bit integer responses (``<i8>``) in XMLRPC
377   transfers.
379 - Issue #2877: The UserString.MutableString class has been removed in
380   Python 3.0.
382 - Do not close external file objects passed to tarfile.open(mode='w:bz2')
383   when the TarFile is closed.
385 - Issue #2959: For consistency with other file-like objects, gzip's
386   GzipFile.close() can now be called multiple times without raising
387   an exception.
389 - Issue #1390: Raise ValueError in toxml when an invalid comment would
390   otherwise be produced.
392 - Issue #2914: TimedRotatingFileHandler now takes an optional keyword
393   argument "utc" to use UTC time rather than local time.
395 - Issue #2929: TimedRotatingFileHandler was using the wrong path when
396   deleting old log files (filename only instead of full path).
398 - Issue #1775025: You can now specify zipfile members to open(),
399   read() or extract() via a ZipInfo instance.  This allows handling
400   duplicate filenames in zipfiles.
402 - Issue #961805: Fix Text.edit_modified() in Tkinter.
404 - Issue #1793: Function ctypes.util.find_msvcrt() added that returns
405   the name of the C runtime library that Python uses.
406   ctypes.util.find_library(name) now call this function when name is
407   'm' or 'c'.
409 - The statvfs module has been deprecated for removal in Python 3.0.
411 - The sunaudiodev and SUNAUDIODEV modules have been deprecated for
412   removal in Python 3.0.
414 - The WAIT module from IRIX has been deprecated for removal in Python
415   3.0.
417 - The torgb module from IRIX has been deprecated for removal in Python
418   3.0.
420 - The SV module from IRIX has been deprecated for removal in Python
421   3.0.
423 - The readcd module from IRIX has been deprecated for removal in
424   Python 3.0.
426 - The panelparser module from IRIX has been deprecated for removal in
427   Python 3.0.
429 - The panel module from IRIX has been deprecated for removal in Python
430   3.0.
432 - The jpeg module from IRIX has been deprecated for removal in Python
433   3.0.
435 - The IOCTL module from IRIX has been deprecated for removal in Python
436   3.0.
438 - The IN module from IRIX has been deprecated for removal in Python
439   3.0.
441 - The imgfile module from IRIX has been deprecated for removal in
442   Python 3.0.
444 - The GLWS module from IRIX has been deprecated for removal in Python
445   3.0.
447 - The GET module from IRIX has been deprecated for removal in Python
448   3.0.
450 - The fm module from IRIX has been deprecated for removal in Python
451   3.0.
453 - The FL, flp, and fl modules from IRIX have been deprecated for
454   removal in Python 3.0.
456 - The FILE module on IRIX has been deprecated for removal in Python
457   3.0.
459 - The ERRNO module on IRIX has been deprecated for removal in Python
460   3.0.
462 - The DEVICE, GL, gl, and cgen modules (which indirectly includes
463   cgensupport) have been deprecated for removal in Python 3.0.
465 - The CL, CL_old, and cl modules for IRIX have been deprecated for
466   removal in Python 3.0.
468 - The cdplayer module for IRIX has been deprecated for removal in
469   Python 3.0.
471 - The cddb module for IRIX has been deprecated for removal in Python
472   3.0.
474 - The cd and CD modules for IRIX have been deprecated for removal in
475   Python 3.0.
477 - The al and AL modules for IRIX have been deprecated for removal in
478   Python 3.0.
480 - Issue #1713041: fix pprint's handling of maximum depth.
482 - The timing module has been deprecated for removal in Python 3.0.
484 - The sv module has been deprecated for removal in Python 3.0.
486 - The multifile module has been deprecated as per PEP 4.
488 - The imageop module has been deprecated for removal in Python 3.0.
490 - Issue #2250: Exceptions raised during evaluation of names in
491   rlcompleter's ``Completer.complete()`` method are now caught and
492   ignored.
494 - Issue #2659: Added ``break_on_hyphens`` option to textwrap
495   TextWrapper class.
497 - The mhlib module has been deprecated for removal in Python 3.0.
499 - The linuxaudiodev module has been deprecated for removal in Python
500   3.0.
502 - The ihooks module has been deprecated for removal in Python 3.0.
504 - The fpformat module has been deprecated for removal in Python 3.0.
506 - The dl module has been deprecated for removal in Python 3.0.
508 - The Canvas module has been deprecated for removal in Python 3.0.
510 - The compiler package has been deprecated for removal in Python 3.0.
512 - The Bastion and rexec modules have been deprecated for removal in
513   Python 3.0.
515 - The bsddb185 module has been deprecated for removal in Python 3.0.
517 - The pure module has been deprecated for removal in Python 3.0.
519 - Issue #2487: change the semantics of math.ldexp(x, n) when n is too
520   large to fit in a C long.  ldexp(x, n) now returns a zero (with
521   suitable sign) if n is large and negative; previously, it raised
522   OverflowError.
524 - The toaiff module has been deprecated for removal in Python 3.0.
526 - The test.testall module has been deprecated for removal in Python
527   3.0.
529 - The new module has been deprecated for removal in Python 3.0.
531 - The user module has been deprecated for removal in Python 3.0.
533 - The stringold module has been deprecated for removal in Python 3.0.
535 - The mutex module has been deprecated for removal in Python 3.0.
537 - The imputil module has been deprecated for removal in Python 3.0.
539 - test.test_support.catch_warning() gained a 'record' argument.
541 - os.path.walk is deprecated in favor of os.walk.
543 - pdb gained the "until" command.
545 - The Mac Modules (including Carbon) have been deprecated for removal
546   in Python 3.0.
548 - Library: on MacOS X you can now set ``ARCHFLAGS`` in the shell
549   environment to control the '-arch' flags that are used to build
550   an extension. This was added for compatibility with Apple's build
551   of Python.
553 - The bundled OSX-specific copy of libbffi is now in sync with the version
554   shipped with PyObjC 2.0 and includes support for x86_64 and ppc64 platforms.
556 - The threading module gained alias for names that are removed in 3.x.
558 Build
559 -----
561 - The Windows installer now includes Tk 8.5, bzip2 1.0.5, and SQLite 3.5.9.
563 - Patch #1722225: Support QNX 6.
565 - ``Lib/lib-old`` is now added to sys.path.
567 - On MacOS X it is now possible to install the framework in 64-bit
568   mode or even as a 4-way universal binary (that is, PPC, i386,
569   PPC64 and x86_64 support in one binary).
571   This is controlled by the configure argument ``--with-universal-archs``:
573   - ``--with-universal-archs=all``: install 4-way universal
575   - ``--with-universal-archs=32-bit``: install 2-way universal, 32-bit (the default)
577   - ``--with-universal-archs=64-bit``: install 2-way universal, 64-bit
579   This option should be used in combination with ``--enable-universalsdk=``.
581   NOTE: 64-bit and 4-way builds are only suppported on Mac OS X 10.5 (or later).
584 C API
585 -----
587 - Add ``PyType_Modified()`` as a public API to clear the type cache.
589 - The PyBytes functions have been renamed to PyByteArray.
591 - The PyString functions have been renamed to PyBytes. A batch of
592   defines were added so that the linker still sees the original
593   PyString names.
596 What's New in Python 2.6 alpha 3?
597 =================================
599 *Release date: 08-May-2008*
601 Core and builtins
602 -----------------
604 - Issue #2719: backported the ``next()`` builtin from Python 3.
606 - Issue #2681: The octal literal ``0o8`` was incorrecly acctepted. Now
607   it properly raises a SyntaxError.
609 - Issue #2617: Reserved -J and -X arguments for Jython, IronPython and
610   other implementations of Python.
612 - Implemented PEP 370: Per user site-packages directory.
614 Extension Modules
615 -----------------
617 - Issue #2670: Fix a failure in urllib2.build_opener(), when passed
618   two handlers that derive the same default base class.
620 - Added kill, terminate and send_signal(sig) to subprocess.Popen.
622 - Added phase(z) -> phi, polar(z) -> r, phi and rect(r, phi) -> z to
623   the cmath module.
625 - Four new methods were added to the math and cmath modules: acosh,
626   asinh, atanh and log1p.
628 - zlib.decompressobj().flush(value) no longer crashes the interpreter
629   when passed a value less than or equal to zero.
631 - Issue #1631171: Re-implement the 'warnings' module in C (the
632   original Python code has been kept as backup). This will allow for
633   using the 'warning's machinery in such places as the parser where
634   use of pure Python code is not possible.  Both the ``showarning()``
635   and ``formatwarning()`` gain an optional 'line' argument which is
636   not called by default for backwards-compatibility reasons. Setting
637   ``warnings.showwarning()`` to an implementation that lacks support
638   for the ``line`` argument will raise a DeprecationWarning.
640 Library
641 -------
643 - The audiodev module has been deprecated for removal in Python 3.0.
645 - Issue #2750: Add the 'json' package. Based on simplejson 1.9 and
646   contributed by Bob Ippolito.
648 - Issue #1734346: Support Unicode file names for zipfiles.
650 - Issue #2581: distutils: Vista UAC/elevation support for
651   bdist_wininst.
653 - Issue #2635: Fix bug in 'fix_sentence_endings' textwrap.fill option,
654   where an extra space was added after a word containing (but not
655   ending in) '.', '!' or '?'.
657 - Add from_buffer() and from_buffer_copy() class methods to ctypes
658   data types.
660 - Issue #2682: ctypes callback functions no longer contain a cyclic
661   reference to themselves.
663 - The getpass module has been improved on Unix.  It now uses /dev/tty
664   by default and uses stderr instead of stdout.  A GetPassWarning is
665   issued when input echo cannot be controlled.
667 - Issue #2014: Allow XML-RPC datetime objects to have dates before
668   1900-01-01.
670 - Issue #2439: Added new function pkgutil.get_data(), which is a
671   convenience wrapper for the PEP 302 get_data() API.
673 - Issue #2616: The ctypes.pointer() and ctypes.POINTER() functions are
674   now implemented in C for better performance.
676 - Issue #2408: The ``_types`` module, which was used as in
677   implementation detail of the public ``types`` module, has been
678   removed and replaced by pure python code.
680 - Issue #2513: distutils on Windows is now capable of cross-compiling
681   extension modules between 32 and 64 bit platforms.  See the distutls
682   build documentation for more information.
684 - Issue #815646: Individual file objects may now be used from multiple
685   threads at once without fear of crashing the Python interpreter.  If
686   file.close() is called while an object is in use by another thread
687   an IOError exception will be raised and the file will not be closed.
689 - The bundled libffi copy is now in sync with the recently released
690   libffi3.0.5 version, apart from some small changes to
691   Modules/_ctypes/libffi/configure.ac.
693 - Issue #2385: distutils.core.run_script() makes __file__ available,
694   so the controlled environment will more closely mirror the typical
695   script environment.  This supports setup.py scripts that refer to
696   data files.
698 Tests
699 -----
701 - Issue #2550: The approach used by client/server code for obtaining
702   ports to listen on in network-oriented tests has been refined in an
703   effort to facilitate running multiple instances of the entire
704   regression test suite in parallel without issue.
705   test_support.bind_port() has been fixed such that it will always
706   return a unique port -- which wasn't always the case with the
707   previous implementation, especially if socket options had been set
708   that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT).  The
709   new implementation of bind_port() will actually raise an exception
710   if it is passed an AF_INET/SOCK_STREAM socket with either the
711   SO_REUSEADDR or SO_REUSEPORT socket option set.  Furthermore, if
712   available, bind_port() will set the SO_EXCLUSIVEADDRUSE option on
713   the socket it's been passed.  This currently only applies to
714   Windows.  This option prevents any other sockets from binding to the
715   host/port we've bound to, thus removing the possibility of the
716   'non-deterministic' behaviour, as Microsoft puts it, that occurs
717   when a second SOCK_STREAM socket binds and accepts to a host/port
718   that's already been bound by another socket.  The optional preferred
719   port parameter to bind_port() has been removed.  Under no
720   circumstances should tests be hard coding ports!
722   test_support.find_unused_port() has also been introduced, which will
723   pass a temporary socket object to bind_port() in order to obtain an
724   unused port.  The temporary socket object is then closed and
725   deleted, and the port is returned.  This method should only be used
726   for obtaining an unused port in order to pass to an external program
727   (i.e. the -accept [port] argument to openssl's s_server mode) or as
728   a parameter to a server-oriented class that doesn't give you direct
729   access to the underlying socket used.
731   Finally, test_support.HOST has been introduced, which should be used
732   for the host argument of any relevant socket calls (i.e. bind and
733   connect).
735   The following tests were updated to following the new conventions:
736     test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib,
737     test_poplib, test_ftplib, test_telnetlib, test_socketserver,
738     test_asynchat and test_socket_ssl.
740   It is now possible for multiple instances of the regression test
741   suite to run in parallel without issue.
743 Build
744 -----
746 - Issue #1496032: On alpha, use -mieee when gcc is the compiler.
748 - Issue #2544: On HP-UX systems, use 'gcc -shared' for linking when
749   gcc is used as compiler.
751 - Issue #2573: On MacOS X it is now possible to install the framework
752   with a different name using --with-framework-name=NAME.
754 C API
755 -----
757 - Added implementation of copysign, acosh, asinh, atanh and log1p to
758   the new files Include/pymath.h and Python/pymath.h for platforms
759   which provide the functions through their libm. The files also
760   contains several helpers and constants for math.
762 - Added a new convenience macro, PyErr_WarnPy3k, for issuing Py3k warnings.
765 What's New in Python 2.6 alpha 2?
766 =================================
768 *Release date: 02-Apr-2008*
770 Core and builtins
771 -----------------
773 - Issue #1733757: The interpreter would hang on shutdown if the
774   tracing function set by sys.settrace is still active and happens to
775   call threading.currentThread().
777 - Patch #1442: properly report exceptions when the PYTHONSTARTUP file
778   cannot be executed.
780 - The compilation of a class nested in another class used to leak one
781   reference on the outer class name.
783 - Patch #1810: compile() can now compile _ast trees as returned by
784   ``compile(..., PyCF_ONLY_AST)``.
786 - Patch #2426: Added sqlite3.Connection.iterdump method to allow easy
787   dumping of databases.  Contributed by Paul Kippes at PyCon 2008.
789 - Patch #2477: Added from __future__ import unicode_literals.
791 - Added backport of bytearray type.
793 - Issue #2355: add Py3k warning for buffer().
795 - Issue #1477: With narrow Unicode builds, the unicode escape sequence
796   \Uxxxxxxxx did not accept values outside the Basic Multilingual
797   Plane.  This affected raw unicode literals and the
798   'raw-unicode-escape' codec.  Now UTF-16 surrogates are generated in
799   this case, like normal unicode literals and the 'unicode-escape'
800   codec.
802 - Issue #2348: add Py3k warning for file.softspace.
804 - Issue #2346/#2347: add Py3k warnings for __methods__ and
805   __members__.
807 - Issue #2358: Add a Py3k warning on sys.exc_clear() usage.
809 - Issue #2400: Allow relative imports to "import *".
811 - Issue #1745: Backport print function with ``from __future__ import
812   print_function``.
814 - Issue #2332: add new attribute names for instance method objects.
815   The two changes are: im_self -> __self__ and im_func -> __func__
817 - Issue #2379: Raise a Py3K warning for __getitem__ or __getslice__ on
818   exception instances.
820 - Issue #2371: Add a Py3k warning when catching an exception that
821   doesn't derive from BaseException.
823 - Issue #2341: Add a Py3k warning when raising an exception that
824   doesn't derive from BaseException.
826 - Issue #2321: use pymalloc for unicode object string data to reduce
827   memory usage in some circumstances.
829 - PEP 3127: octal literals now start with "0o". Old-style octal
830   literals are still valid. There are binary literals with a prefix of
831   "0b".  This also affects int(x, 0).
833 - Issue #2359: Adding deprecation warnings for array.{read,write}.
835 - Issue #1779871: GNU gcc can now build Python on OS X because the
836   flags -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd are no
837   longer passed.
839 - Add a warning when asserting a non-empty tuple which is always true.
841 - Issue #2179: speed up with statement execution by storing the exit
842   method on the stack instead of in a temporary variable (patch by
843   Jeffrey Yaskin)
845 - Issue #2238: Some syntax errors in *args and **kwargs expressions
846   could give bogus error messages.
848 - Issue #2143: Fix embedded readline() hang on SSL socket EOF.
850 Extension Modules
851 -----------------
853 - Patch #2240: Implement signal.setitimer and signal.getitimer.
855 Library
856 -------
858 - Issue #2315: logging.handlers: TimedRotatingFileHandler now accounts
859   for daylight savings time in calculating the next rollover.
861 - Issue #2316: logging.handlers: TimedRotatingFileHandler now
862   calculates rollovers correctly even when nothing is logged for a
863   while.
865 - Issue #2317: logging.handlers: TimedRotatingFileHandler now uses
866   improved logic for removing old files.
868 - Issue #2495: tokenize.untokenize now inserts a space between two
869   consecutive string literals; previously, ["" ""] was rendered as
870   [""""], which is incorrect python code.
872 - Issue #2248: return the result of the QUIT command. from
873   SMTP.quit().
875 - Backport of Python 3.0's io module.
877 - Issue #2482: Make sure that the coefficient of a Decimal is always
878   stored as a str instance, not as a unicode instance.  This ensures
879   that str(Decimal) is always an instance of str.
881 - Issue #2478: fix failure of decimal.Decimal(0).sqrt()
883 - Issue #2432: give DictReader the dialect and line_num attributes
884   advertised in the docs.
886 - Issue #2460: Make Ellipsis object copyable.
888 - Issue #1681432: Add triangular distribution to the random module
890 - Issue #2136: urllib2's auth handler now allows single-quoted realms
891   in the WWW-Authenticate header.
893 - Issue #2434: Enhanced platform.win32_ver() to also work on Python
894   installation which do not have the win32all package installed.
896 - Added support to platform.uname() to also report the machine and
897   processor information on Windows XP and later. As a result,
898   platform.machine() and platform.processor() will report this
899   information as well.
901 - The library implementing the 2to3 conversion, lib2to3, was added to
902   the standard distribution.
904 - Issue #1747858: Fix chown to work with large uid's and gid's on
905   64-bit platforms.
907 - Issue #1202: zlib.crc32 and zlib.adler32 no longer return different
908   values on 32-bit vs. 64-bit python interpreters.  Both were correct,
909   but they now both return a signed integer object for consistency.
911 - Issue #1158: add %f format (fractions of a second represented as
912   microseconds) to datetime objects.  Understood by both strptime and
913   strftime.
915 - Issue #705836: struct.pack(">f", x) now raises OverflowError on all
916   platforms when x is too large to fit into an IEEE 754 float;
917   previously it only raised OverflowError on non IEEE 754 platforms.
919 - Issues #2166, #1741 and #1531505: now distutils deals with HOME
920   correctly under win32
922 - Patch #1858: distutils: added multiple server support in .pypirc
924 - Issue #1106316: pdb.post_mortem()'s parameter, "traceback", is now
925   optional: it defaults to the traceback of the exception that is
926   currently being handled (is mandatory to be in the middle of an
927   exception, otherwise it raises ValueError).
929 - Issue #1193577: A .shutdown() method has been added to SocketServers
930   which terminates the .serve_forever() loop.
932 - Issue #2220: handle rlcompleter attribute match failure more
933   gracefully.
935 - Issue #2225: py_compile, when executed as a script, now returns a
936   non- zero status code if not all files could be compiled
937   successfully.
939 - Bug #1725737: In distutils' sdist, exclude RCS, CVS etc. also in the
940   root directory, and also exclude .hg, .git, .bzr, and _darcs.
942 - Issue #1872: The struct module typecode for _Bool has been changed
943   from 't' to '?'.
945 - The bundled libffi copy is now in sync with the recently released
946   libffi3.0.4 version, apart from some small changes to
947   Modules/_ctypes/libffi/configure.ac.  On OS X, preconfigured libffi
948   files are used.  On all linux systems the --with-system-ffi
949   configure option defaults to "yes".
951 - Issue #1577: shutil.move() now calls os.rename() if the destination
952   is a directory instead of copying-then-remove-source.
954 Tests
955 -----
957 - test_nis no longer fails when test.test_support.verbose is true and
958   NIS is not set up on the testing machine.
960 - Output comparison tests are no longer supported.
962 - Rewrite test_errno to use unittest and no longer be a no-op.
964 - GHOP 234: Convert test_extcall to doctest.
966 - GHOP 290: Convert test_dbm and test_dummy_threading to unittest.
968 - GHOP 293: Convert test_strftime, test_getargs, and test_pep247 to
969   unittest.
971 - Issue #2055: Convert test_fcntl to unittest.
973 - Issue 1960: Convert test_gdbm to unittest.
975 - GHOP 294: Convert test_contains, test_crypt, and test_select to
976   unittest.
978 - GHOP 238: Convert test_tokenize to use doctest.
980 - GHOP 237: Rewrite test_thread using unittest.
982 - Patch #2232: os.tmpfile might fail on Windows if the user has no
983   permission to create files in the root directory.
985 Build
986 -----
988 - A new script 2to3 is now installed, to run the 2.x to 3.x converter.
990 - Python/memmove.c and Python/strerror.c have been removed; both
991   functions are in the C89 standard library.
993 - Patch #2284: Add -x64 option to rt.bat.
995 C API
996 -----
998 - Patch #2477: Added PyParser_ParseFileFlagsEx() and
999   PyParser_ParseStringFlagsFilenameEx().
1002 What's New in Python 2.6 alpha 1?
1003 =================================
1005 *Release date: 29-Feb-2008*
1007 Core and builtins
1008 -----------------
1010 - Issue #2051: pyc and pyo files are no longer created with permission
1011   644. The mode is now inherited from the py file.
1013 - Issue #2067: file.__exit__() now calls subclasses' close() method.
1015 - Patch #1759: Backport of PEP 3129 class decorators.
1017 - Issue #1881: An internal parser limit has been increased. Also see
1018   issue 215555 for a discussion.
1020 - Added the future_builtins module, which contains hex() and oct().
1021   These are the PEP 3127 version of these functions, designed to be
1022   compatible with the hex() and oct() builtins from Python 3.0.  They
1023   differ slightly in their output formats from the existing, unchanged
1024   Python 2.6 builtins.  The expected usage of the future_builtins
1025   module is:
1026     from future_builtins import hex, oct
1028 - Issue #1600: Modifed PyOS_ascii_formatd to use at most 2 digit
1029   exponents for exponents with absolute value < 100.  Follows C99
1030   standard.  This is a change on Windows, which would use 3 digits.
1031   Also, added 'n' to the formats that PyOS_ascii_formatd understands,
1032   so that any alterations it does to the resulting string will be
1033   available in stringlib/formatter.h (for float.__format__).
1035 - Implemented PEP 3101, Advanced String Formatting.  This adds a new
1036   builtin format(); a format() method for str and unicode; a
1037   __format__() method to object, str, unicode, int, long, float, and
1038   datetime; the class string.Formatter; and the C API
1039   PyObject_Format().
1041 - Fixed several potential crashes, all caused by specially crafted
1042   __del__ methods exploiting objects in temporarily inconsistent
1043   state.
1045 - Issue #2115: Important speedup in setting __slot__ attributes.  Also
1046   prevent a possible crash: an Abstract Base Class would try to access
1047   a slot on a registered virtual subclass.
1049 - Fixed repr() and str() of complex numbers with infinity or nan as
1050   real or imaginary part.
1052 - Clear all free lists during a gc.collect() of the highest generation
1053   in order to allow pymalloc to free more arenas. Python may give back
1054   memory to the OS earlier.
1056 - Issue #2045: Fix an infinite recursion triggered when printing a
1057   subclass of collections.defaultdict, if its default_factory is set
1058   to a bound method.
1060 - Fixed a minor memory leak in dictobject.c. The content of the free
1061   list was not freed on interpreter shutdown.
1063 - Limit free list of method and builtin function objects to 256
1064   entries each.
1066 - Patch #1953: Added ``sys._compact_freelists()`` and the C API
1067   functions ``PyInt_CompactFreeList`` and ``PyFloat_CompactFreeList``
1068   to compact the internal free lists of pre-allocted ints and floats.
1070 - Issue #1983: Fixed return type of fork(), fork1() and forkpty()
1071   calls.  Python expected the return type int but the fork familie
1072   returns pi_t.
1074 - Issue #1678380: Fix a bug that identifies 0j and -0j when they
1075   appear in the same code unit.
1077 - Issue #2025: Add tuple.count() and tuple.index() methods to comply
1078   with the collections.Sequence API.
1080 - Patch #1970 by Antoine Pitrou: Speedup unicode whitespace and
1081   linebreak detection
1083 - Added ``PyType_ClearCache()`` and ``sys._clear_type_cache`` to clear
1084   the internal lookup cache for ref leak tests.
1086 - Patch #1473257: generator objects gain a gi_code attribute. This is
1087   the same object as the func_code attribute of the function that
1088   produced the generator.
1090 - Issue #1920: "while 0" statements were completely removed by the
1091   compiler, even in the presence of an "else" clause, which is
1092   supposed to be run when the condition is false. Now the compiler
1093   correctly emits bytecode for the "else" suite.
1095 - A few crashers fixed: weakref_in_del.py (issue #1377858);
1096   loosing_dict_ref.py (issue #1303614, test67.py);
1097   borrowed_ref_[34].py (not in tracker).
1099 - Issue #1069410: The "can't load dll" message box on Windows is
1100   suppressed while an extension is loaded by calling SetErrorMode in
1101   dynload_win.c. The error is still reported properly.
1103 - Issue #1915: Python compiles with --enable-unicode=no again. However
1104   several extension methods and modules do not work without unicode
1105   support.
1107 - Issue #1882: when compiling code from a string, encoding cookies in the
1108   second line of code were not always recognized correctly.
1110 - Issue #1679: "0x" was taken as a valid integer literal.
1112 - Issue #1865: ``bytes`` as an alias for ``str`` and b"" as an alias "" were
1113   added.
1115 - sys.float_info / PyFloat_GetInfo: The floating point information
1116   object was converted from a dict to a specialized structseq object.
1118 - Patch #1816: Added sys.flags structseq. It exposes the status of
1119   most command line arguments and PYTHON* environment variables.
1121 - Objects/structseq.c: Implemented new structseq representation. The
1122   patch makes structseqs (e.g. the return value of os.stat) more
1123   readable.
1125 - Patch #1700288: added a type attribute cache that caches method
1126   accesses, resulting in speedups in heavily object-oriented code.
1128 - Bug #1776: __import__() no longer accepts filenames on any platform.
1129   The first parameter to __import__() must be a valid module name.
1131 - Patch #1668: renamed THREADDEBUG envvar to PYTHONTHREADDEBUG.
1133 - Patch #602345: Add -B command line option, PYTHONDONTWRITEBYTECODE
1134   envvar and sys.dont_write_bytecode attribute. All these can be set
1135   to forbid Python to attempt to write compiled bytecode files.
1137 - Improve some exception messages when Windows fails to load an
1138   extension module. Now we get for example '%1 is not a valid Win32
1139   application' instead of 'error code 193'.
1141 - Bug #1481296: Fixed long(float('nan')) != 0L.
1143 - Issue #1640: Added math.isinf(x), math.isnan(x) and math.copysign(x,
1144   y) functions.
1146 - Issue #1635: Platform independent creation and representation of NaN
1147   and INF. float("nan"), float("inf") and float("-inf") now work on
1148   every platform with IEEE 754 semantics.
1150 - Compiler now generates simpler and faster code for dictionary
1151   literals.  The oparg for BUILD_MAP now indicates an estimated
1152   dictionary size.  There is a new opcode, STORE_MAP, for adding
1153   entries to the dictionary.
1155 - Issue #1638: %zd configure test fails on Linux.
1157 - Issue #1620: New property decorator syntax was modifying the
1158   decorator in place instead of creating a new decorator object.
1160 - Issue #1538: Avoid copying string in split/rsplit if the split char
1161   is not found.
1163 - Issue #1553: An erroneous __length_hint__ can make list() raise a
1164   SystemError.
1166 - PEP 366: Allow explicit relative imports when executing modules
1167   inside packages with the -m switch via a new module level
1168   __package__ attribute.
1170 - Issue #1402: Fix a crash on exit, when another thread is still
1171   running, and if the deallocation of its frames somehow calls the
1172   PyGILState_Ensure() / PyGILState_Release() functions.
1174 - Expose the Py_Py3kWarningFlag as sys.py3kwarning.
1176 - Issue #1445: Fix a SystemError when accessing the ``cell_contents``
1177   attribute of an empty cell object.
1179 - Issue #1460: The utf-7 incremental decoder did not accept truncated
1180   input.  It now correctly saves its state between chunks of data.
1182 - Patch #1739468: Directories and zipfiles containing a __main__.py
1183   file can now be directly executed by passing their name to the
1184   interpreter. The directory/zipfile is automatically inserted as the
1185   first entry in sys.path.
1187 - Issue #1265: Fix a problem with sys.settrace, if the tracing
1188   function uses a generator expression when at the same time the
1189   executed code is closing a paused generator.
1191 - sets and frozensets now have an isdisjoint() method.
1193 - optimize the performance of builtin.sum().
1195 - Fix warnings found by the new version of the Coverity checker.
1197 - The enumerate() builtin function is no longer bounded to sequences
1198   smaller than LONG_MAX.  Formerly, it raised an OverflowError.  Now,
1199   automatically shifts from ints to longs.
1201 - Issue #1686386: Tuple's tp_repr did not take into account the
1202   possibility of having a self-referential tuple, which is possible
1203   from C code.  Nor did object's tp_str consider that a type's tp_str
1204   could do something that could lead to an inifinite recursion.
1205   Py_ReprEnter() and Py_EnterRecursiveCall(), respectively, fixed the
1206   issues.
1208 - Issue #1164: It was possible to trigger deadlock when using the
1209   'print' statement to write to a file since the GIL was not released
1210   as needed.  Now PyObject_Print() does the right thing along with
1211   various tp_print implementations of the built-in types and those in
1212   the collections module.
1214 - Issue #1147: Exceptions were directly allowing string exceptions in
1215   their throw() method even though string exceptions no longer
1216   allowed.
1218 - Issue #1096: Prevent a segfault from getting the repr of a very
1219   deeply nested list by using the recursion counter.
1221 - Issue #1202533: Fix infinite recursion calls triggered by calls to
1222   PyObject_Call() never calling back out to Python code to trigger
1223   recursion depth updates/checks.  Required the creation of a static
1224   RuntimeError instance in case normalizing an exception put the
1225   recursion check value past its limit.  Fixes crashers
1226   infinite_rec_(1|2|4|5).py.
1228 - Patch #1031213: Decode source line in SyntaxErrors back to its
1229   original source encoding.
1231 - Patch #1673759: add a missing overflow check when formatting floats
1232   with %G.
1234 - Prevent expandtabs() on string and unicode objects from causing a
1235   segfault when a large width is passed on 32-bit platforms.
1237 - Issue #1733488: Fix compilation of bufferobject.c on AIX.
1239 - Issue #1722485: remove docstrings again when running with -OO.
1241 - Add new attribute names for function objects.  All the func_* become
1242   __*__ attributes.  (Some already existed, e.g., __doc__ and
1243   __name__.)
1245 - Add -3 option to the interpreter to warn about features that are
1246   deprecated and will be changed/removed in Python 3.0.
1248 - Patch #1686487: you can now pass any mapping after '**' in function
1249   calls.
1251 - except clauses may now be spelled either "except E, target:" or
1252   "except E as target:". This is to provide forwards compatibility
1253   with Python 3.0.
1255 - Deprecate BaseException.message as per PEP 352.
1257 - Issue #1303614: don't expose object's __dict__ when the dict is
1258   inherited from a builtin base.
1260 - When __slots__ are set to a unicode string, make it work the same as
1261   setting a plain string, ie don't expand to single letter identifiers.
1263 - Request #1191699:  Slices can now be pickled.
1265 - Request #1193128:  str.translate() now allows a None argument for
1266   translations that only remove characters without re-mapping the
1267   remaining characters.
1269 - Patch #1682205: a TypeError while unpacking an iterable is no longer
1270   masked by a generic one with the message "unpack non-sequence".
1272 - Remove unused file Python/fmod.c.
1274 - Bug #1683368: The object.__init__() and object.__new__() methods are
1275   now stricter in rejecting excess arguments.  The only time when
1276   either allows excess arguments is when it is not overridden and the
1277   other one is.  For backwards compatibility, when both are
1278   overridden, it is a deprecation warning (for now; maybe a Py3k
1279   warning later).  Also, type.__init__() insists on the same signature
1280   as supported by type.__new__().
1282 - Patch #1675423: PyComplex_AsCComplex() now tries to convert an
1283   object to complex using its __complex__() method before falling back
1284   to the __float__() method. Therefore, the functions in the cmath
1285   module now can operate on objects that define a __complex__()
1286   method.
1288 - Patch #1623563: allow __class__ assignment for classes with
1289   __slots__.  The old and the new class are still required to have the
1290   same slot names.
1292 - Patch #1642547: Fix an error/crash when encountering syntax errors
1293   in complex if statements.
1295 - Patch #1462488: Python no longer segfaults when
1296   ``object.__reduce_ex__()`` is called with an object that is faking
1297   its type.
1299 - Patch #1680015: Don't modify __slots__ tuple if it contains an
1300   unicode name.
1302 - Patch #1444529: the builtin compile() now accepts keyword arguments.
1304 - Bug #1678647: write a newline after printing an exception in any
1305   case, even when converting the value to a string failed.
1307 - The dir() function has been extended to call the __dir__() method on
1308   its argument, if it exists. If not, it will work like before. This
1309   allows customizing the output of dir() in the presence of a
1310   __getattr__().
1312 - Patch #922167: Python no longer segfaults when faced with infinitely
1313   self-recursive reload() calls (as reported by bug #742342).
1315 - Patch #1675981: remove unreachable code from ``type.__new__()``
1316   method.
1318 - Patch #1491866: change the complex() constructor to allow
1319   parthensized forms. This means complex(repr(x)) now works instead of
1320   raising a ValueError.
1322 - Patch #703779: unset __file__ in __main__ after running a file. This
1323   makes the filenames the warning module prints much more sensible
1324   when a PYTHONSTARTUP file is used.
1326 - Variant of patch #697613: don't exit the interpreter on a SystemExit
1327   exception if the -i command line option or PYTHONINSPECT environment
1328   variable is given, but break into the interactive interpreter just
1329   like on other exceptions or normal program exit.
1331 - Patch #1638879: don't accept strings with embedded NUL bytes in
1332   long().
1334 - Bug #1674503: close the file opened by execfile() in an error
1335   condition.
1337 - Patch #1674228: when assigning a slice (old-style), check for the
1338   sq_ass_slice instead of the sq_slice slot.
1340 - When printing an unraisable error, don't print exceptions. before
1341   the name.  This duplicates the behavior whening normally printing
1342   exceptions.
1344 - Bug #1653736: Properly discard third argument to
1345   slot_nb_inplace_power.
1347 - PEP 352: Raising a string exception now triggers a TypeError.
1348   Attempting to catch a string exception raises DeprecationWarning.
1350 - Bug #1377858: Fix the segfaulting of the interpreter when an object
1351   created a weakref on itself during a __del__ call for new-style
1352   classes (classic classes still have the bug).
1354 - Bug #1579370: Make PyTraceBack_Here use the current thread, not the
1355   frame's thread state.
1357 - patch #1630975: Fix crash when replacing sys.stdout in
1358   sitecustomize.py.
1360 - Prevent seg fault on shutdown which could occur if an object raised
1361   a warning.
1363 - Bug #1566280: Explicitly invoke threading._shutdown from Py_Main, to
1364   avoid relying on atexit.
1366 - Bug #1590891: random.randrange don't return correct value for big
1367   number.
1369 - Patch #1586791: Better exception messages for some operations on
1370   strings, tuples and lists.
1372 - Bug #1067760: Deprecate passing floats to file.seek.
1374 - Bug #1591996: Correctly forward exception in instance_contains().
1376 - Bug #1588287: fix invalid assertion for `1,2` in debug builds.
1378 - Bug #1576657: when setting a KeyError for a tuple key, make sure
1379   that the tuple isn't used as the "exception arguments tuple".
1381 - Bug #1565514: SystemError not raised on too many nested blocks.
1383 - Bug #1576174: WindowsError now displays the windows error code
1384   again, no longer the posix error code.
1386 - Patch #1549049: Support long values in structmember, issue warnings
1387   if the assigned value for structmember fields gets truncated.
1389 - Update the peephole optimizer to remove more dead code (jumps after
1390   returns) and inline unconditional jumps to returns.
1392 - Bug #1545497: when given an explicit base, int() did ignore NULs
1393   embedded in the string to convert.
1395 - Bug #1569998: break inside a try statement (outside a loop) is now
1396   recognized and rejected.
1398 - list.pop(x) accepts any object x following the __index__ protocol.
1400 - A number of places, including integer negation and absolute value,
1401   were fixed to not rely on undefined behaviour of the C compiler
1402   anymore.
1404 - Bug #1566800: make sure that EnvironmentError can be called with any
1405   number of arguments, as was the case in Python 2.4.
1407 - Patch #1567691: super() and new.instancemethod() now don't accept
1408   keyword arguments any more (previously they accepted them, but
1409   didn't use them).
1411 - Fix a bug in the parser's future statement handling that led to
1412   "with" not being recognized as a keyword after, e.g., this
1413   statement: from __future__ import division, with_statement
1415 - Bug #1557232: fix seg fault with def f((((x)))) and def f(((x),)).
1417 - Fix %zd string formatting on Mac OS X so it prints negative numbers.
1419 - Allow exception instances to be directly sliced again.
1421 - Bug #1551432: Exceptions do not define an explicit __unicode__
1422   method.  This allows calling unicode() on exceptions classes
1423   directly to succeed.
1425 - Bug #1542051: Exceptions now correctly call PyObject_GC_UnTrack.
1426   Also make sure that every exception class has __module__ set to
1427   'exceptions'.
1429 - Bug #1550983: emit better error messages for erroneous relative
1430   imports (if not in package and if beyond toplevel package).
1432 - Overflow checking code in integer division ran afoul of new gcc
1433   optimizations.  Changed to be more standard-conforming.
1435 - Patch #1542451: disallow continue anywhere under a finally.
1437 - Patch #1546288: fix seg fault in dict_equal due to ref counting bug.
1439 - The return tuple from str.rpartition(sep) is (tail, sep, head) where
1440   head is the original string if sep was not found.
1442 - Bug #1520864: unpacking singleton tuples in list comprehensions and
1443   generator expressions (x for x, in ... ) works again.  Fixing this
1444   problem required changing the .pyc magic number.  This means that
1445   .pyc files generated before 2.5c2 will be regenerated.
1447 - ``with`` and ``as`` are now keywords.
1449 - Bug #1664966: Fix crash in exec if Unicode filename can't be
1450   decoded.
1452 - Issue #1537: Changed GeneratorExit's base class from Exception to
1453   BaseException.
1455 - Issue #1703448: A joined thread could show up in the
1456   threading.enumerate() list after the join() for a brief period until
1457   it actually exited.
1460 Library
1461 -------
1463 - Patch #2274: Add heapq.heappushpop().
1465 - Add inspect.isabstract(object) to fix bug #2223
1467 - Add a __format__ method to Decimal, to support PEP 3101.
1469 - Add a timing parameter when using trace.Trace to print out
1470   timestamps.
1472 - Issue #1627: httplib now ignores negative Content-Length headers.
1474 - Issue #900744: If an invalid chunked-encoding header is sent by a
1475   server, httplib will now raise IncompleteRead and close the
1476   connection instead of raising ValueError.
1478 - Issue #1492: The content type of BaseHTTPServer error messages can
1479   now be overridden.
1481 - Issue #1781: ConfigParser now does not let you add the "default" section
1482   (ignore-case)
1484 - Removed uses of dict.has_key() from distutils, and uses of
1485   callable() from copy_reg.py, so the interpreter now starts up
1486   without warnings when '-3' is given.  More work like this needs to
1487   be done in the rest of the stdlib.
1489 - Issue #1916: added isgenerator() and isgeneratorfunction() to
1490   inspect.py.
1492 - Issue #1224: Fixed bad url parsing when path begins with double
1493   slash.
1495 - ctypes instances that are not or do not contain pointers can now be
1496   pickled.
1498 - Patch #1966: Break infinite loop in httplib when the servers
1499   implements the chunked encoding incorrectly.
1501 - Rename rational.py to fractions.py and the rational.Rational class
1502   to fractions.Fraction, to avoid the name clash with the abstract
1503   base class numbers.Rational.  See discussion in issue #1682.
1505 - The pickletools module now provides an optimize() function that
1506   eliminates unused PUT opcodes from a pickle string.
1508 - Patch #2021: Allow tempfile.NamedTemporaryFile and
1509   SpooledTemporaryFile to be used in with statements by correctly
1510   supporting the context management protocol.
1512 - Patch #1979: Add rich comparisons to Decimal, and make Decimal
1513   comparisons involving a NaN follow the IEEE 754 standard.
1515 - Issue #2004: tarfile.py: Use mode 0700 for temporary directories and
1516   default permissions for missing directories.
1518 - Issue #175006: The debugger used to skip the condition of a "while"
1519   statement after the first iteration. Now it correctly steps on the
1520   expression, and breakpoints on the "while" statement are honored on
1521   each loop.
1523 - Issue #1765140: add an optional delay argument to FileHandler and
1524   its subclasses. Defaults to false (existing behaviour), but if true,
1525   defers opening the file until the first call to emit().
1527 - The pprint module now supports sets and frozensets.
1529 - Issue #1221598: add optional callbacks to ftplib.FTP's storbinary()
1530   and storlines() methods.  (Contributed by Phil Schwartz)
1532 - Issue #1715: include sub-extension modules in pydoc's text output.
1534 - Issue #1836: fix an off-by-one bug in TimedRotatingHandler's
1535   rollover time calculation.
1537 - Issue #1021: fix a bug to allow basicConfig to accept NOTSET as a
1538   level.
1540 - Issue #932563: add LoggerAdapter convenience class to make it easier
1541   to add contextual information in logging output.
1543 - Issue #1760556: fix a bug to avoid FileHandler throwing an exception
1544   in flush().
1546 - Bug #1530959: distutils' build command now uses different build
1547   directory when building extension modules against versions of Python
1548   compiled with ``--with-pydebug``.
1550 - Issue #1555501: move plistlib from plat-mac directory to general
1551   library.
1553 - Issue #1269: fix a bug in pstats.add_callers() and add a unit test
1554   file for pstats.
1556 - Issue #1669: don't allow shutil.rmtree() to be called on a symlink
1557   to a directory.
1559 - Issue #1664522: in urllib, don't read non-existing directories in
1560   ftp mode, returning a 0-byte file -- raise an IOError instead.
1562 - Issue #856047: respect the ``no_proxy`` environment variable when
1563   using the ``http_proxy`` etc. environment variables in urllib.
1565 - Issue #1178141: add a getcode() method to the addinfourls that
1566   urllib.open() returns so that you can retrieve the HTTP status code.
1568 - Issue #1003: Fix zipfile decryption check, it would fail zip files
1569   with extended local headers.
1571 - Issue #1189216: Fix the zipfile module to work on archives with
1572   headers past the 2**31 byte boundary.
1574 - Issue #1336: fix a race condition in subprocess.Popen if the garbage
1575   collector kicked in at the wrong time that would cause the process
1576   to hang when the child wrote to stderr.
1578 - Issue #1146: fix how textwrap breaks a long word that would start in
1579   the last column of a line.
1581 - Issue #1693149: trace.py --ignore-module - accept multiple
1582   comma-separated modules to be given.
1584 - Issue #1822: MIMEMultipart.is_multipart() behaves correctly for a
1585   just-created (and empty) instance. Thanks Jonathan Share.
1587 - Issue #1861: Added an attribute to the sched module which returns an
1588   ordered list of upcoming events (displayed as named tuples).
1590 - Issue #1837: The queue module now also supports a LIFO queue and a
1591   priority queue.
1593 - Patch #1048820: Add insert-mode editing to curses.textpad.Textbox
1594   (patch by Stefan Wehr).  Also, fix an off-by-one bug in
1595   Textbox.gather().
1597 - Issue #1831: ctypes now raises a TypeError if conflicting positional
1598   and named arguments are passed to a Structure or Union initializer.
1599   When too many positional arguments are passed, also a TypeError is
1600   raised instead of a ValueError.
1602 - Convert the internal ctypes array type cache to a WeakValueDict so
1603   that array types do not live longer than needed.
1605 - Issue #1786: pdb should use its own stdin/stdout around an exec call
1606   and when creating a recursive instance.
1608 - Issue #1698398: ZipFile.printdir() crashed because the format string
1609   expected a tuple type of length six instead of time.struct_time
1610   object.
1612 - Issue #1780: The Decimal constructor now accepts arbitrary leading
1613   and trailing whitespace when constructing from a string.
1614   Context.create_decimal no longer accepts trailing newlines.
1616 - Decimal.as_tuple(), difflib.find_longest_match() and inspect
1617   functions that returned a tuple now return a named tuple.
1619 - Doctest now returns results as a named tuple for readability:
1620       (0, 7) --> TestResults(failed=0, attempted=7)
1622 - Issue #846388:q re.match is interruptible now, which is particularly
1623   good for long regular expression matches.
1625 - Patch #1137: allow setting buffer_size attribute on pyexpat Parser
1626   objects to set the character data buffer size.
1628 - Issue #1757: The hash of a Decimal instance is no longer affected by
1629   the current context.
1631 - Patch #467924: add ZipFile.extract() and ZipFile.extractall() in the
1632   zipfile module.
1634 - Issue #1646: Make socket support the TIPC protocol.
1636 - Bug #1742: return os.curdir from os.path.relpath() if both arguments
1637   are equal instead of raising an exception.
1639 - Patch #1637: fix urlparse for URLs like 'http://x.com?arg=/foo'.
1641 - Patch #1698: allow '@' in username parsed by urlparse.py.
1643 - Issue #1735: TarFile.extractall() now correctly sets directory
1644   permissions and times.
1646 - Bug #1713: posixpath.ismount() claims symlink to a mountpoint is a mountpoint.
1648 - Bug #1687: Fxed plistlib.py restricts <integer> to Python int when
1649   writing
1651 - Issue #1700: Regular expression inline flags incorrectly handle
1652   certain unicode characters.
1654 - Issue #1689: PEP 3141, numeric abstract base classes.
1656 - Tk issue #1851526: Return results from Python callbacks to Tcl as
1657   Tcl objects.
1659 - Issue #1642: Fix segfault in ctypes when trying to delete attributes.
1661 - Issue #1727780: Support loading pickles of random.Random objects
1662   created on 32-bit systems on 64-bit systems, and vice versa. As a
1663   consequence of the change, Random pickles created by Python 2.6
1664   cannot be loaded in Python 2.5.
1666 - Issue #1455: The distutils package now supports VS 2005 and VS 2008
1667   for both the msvccompiler and cygwincompiler.
1669 - Issue #1531: tarfile.py: Read fileobj from the current offset, do
1670   not seek to the start.
1672 - Issue #1534: Added a dictionary sys.float_info with information
1673   about the internal floating point type to the sys module.
1675 - Issue #1429818: patch for trace and doctest modules so they play
1676   nicely together.
1678 - doctest made a bad assumption that a package's __loader__.get_data()
1679   method used universal newlines.
1681 - Issue #1705170: contextlib.contextmanager was still swallowing
1682   StopIteration in some cases. This should no longer happen.
1684 - Issue #1292: On alpha, arm, ppc, and s390 linux systems the
1685   --with-system-ffi configure option defaults to "yes".
1687 - IN module for FreeBSD 8 is added and preexisting FreeBSD 6 and 7
1688   files are updated.
1690 - Issues #1181, #1287: unsetenv() is now called when the
1691   os.environ.pop() and os.environ.clear() methods are used.
1693 - ctypes will now work correctly on 32-bit systems when Python is
1694   configured with --with-system-ffi.
1696 - Patch #1203: ctypes now does work on OS X when Python is built with
1697   --disable-toolbox-glue.
1699 - collections.deque() now supports a "maxlen" argument.
1701 - itertools.count() is no longer bounded to LONG_MAX.  Formerly, it
1702   raised an OverflowError.  Now, automatically shifts from ints to
1703   longs.
1705 - Added itertools.product() which forms the Cartesian product of the
1706   input iterables.
1708 - Added itertools.combinations() and itertools.permutations().
1710 - Patch #1541463: optimize performance of cgi.FieldStorage operations.
1712 - Decimal is fully updated to the latest Decimal Specification
1713   (v1.66).
1715 - Bug #1153: repr.repr() now doesn't require set and dictionary items
1716   to be orderable to properly represent them.
1718 - A 'c_longdouble' type was added to the ctypes module.
1720 - Bug #1709599: Run test_1565150 only if the file system is NTFS.
1722 - When encountering a password-protected robots.txt file the
1723   RobotFileParser no longer prompts interactively for a username and
1724   password (bug 813986).
1726 - TarFile.__init__() no longer fails if no name argument is passed and
1727   the fileobj argument has no usable name attribute (e.g. StringIO).
1729 - The functools module now provides 'reduce', for forward
1730   compatibility with Python 3000.
1732 - Server-side SSL support and cert verification added, by Bill
1733   Janssen.
1735 - socket.ssl deprecated; use new ssl module instead.
1737 - uuid creation is now threadsafe.
1739 - EUC-KR codec now handles the cheot-ga-keut composed make-up hangul
1740   syllables.
1742 - GB18030 codec now can encode additional two-byte characters that are
1743   missing in GBK.
1745 - Add new codecs for UTF-32, UTF-32-LE and UTF-32-BE.
1747 - Bug #1704793: Return UTF-16 pair if unicodedata.lookup cannot
1748   represent the result in a single character.
1750 - Bug #978833: Close https sockets by releasing the _ssl object.
1752 - Change location of the package index to pypi.python.org/pypi
1754 - Bug #1701409: Fix a segfault in printing ctypes.c_char_p and
1755   ctypes.c_wchar_p when they point to an invalid location.  As a
1756   sideeffect the representation of these instances has changed.
1758 - tarfile.py: Added "exclude" keyword argument to TarFile.add().
1760 - Bug #1734723: Fix repr.Repr() so it doesn't ignore the maxtuple
1761   attribute.
1763 - The urlopen function of urllib2 now has an optional timeout
1764   parameter (note that it actually works with HTTP, HTTPS, FTP and
1765   FTPS connections).
1767 - In ftplib, the FTP.ntransfercmd method, when in passive mode, now
1768   uses the socket.create_connection function, using the timeout
1769   specified at connection time.
1771 - Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it
1772   reads a file that ends with incomplete sequence and sizehint
1773   argument for .read() is specified.
1775 - Bug #1730389: Change time.strptime() to use ``\s+`` instead of
1776   ``\s*`` when matching spaces in the specified format argument.
1778 - Bugs #1668596/#1720897: distutils now copies data files even if
1779   package_dir is empty.
1781 - sha now raises a DeprecationWarning upon import.
1783 - md5 now raises a DeprecationWarning upon import.
1785 - Issue #1385: The hmac module now computes the correct hmac when
1786   using hashes with a block size other than 64 bytes (such as sha384
1787   and sha512).
1789 - mimify now raises a DeprecationWarning upon import.
1791 - MimeWriter now raises a DeprecationWarning upon import.
1793 - tarfile.py: Improved unicode support. Unicode input names are now
1794   officially supported. Added "errors" argument to the TarFile class.
1796 - urllib.ftpwrapper class now accepts an optional timeout.
1798 - shlex.split() now has an optional "posix" parameter.
1800 - The posixfile module now raises a DeprecationWarning.
1802 - Remove the gopherlib module.  This also leads to the removal of
1803   gopher support in urllib/urllib2.
1805 - Fix bug in marshal where bad data would cause a segfault due to lack
1806   of an infinite recursion check.
1808 - Removed plat-freebsd2 and plat-freebsd3 directories (and IN.py in
1809   the directories).
1811 - HTML-escape the plain traceback in cgitb's HTML output, to prevent
1812   the traceback inadvertently or maliciously closing the comment and
1813   injecting HTML into the error page.
1815 - The popen2 module and os.popen* are deprecated.  Use the subprocess
1816   module.
1818 - Added an optional credentials argument to SMTPHandler, for use with
1819   SMTP servers which require authentication.
1821 - Patch #1695948: Added optional timeout parameter to SocketHandler.
1823 - Bug #1652788: Minor fix for currentframe.
1825 - Patch #1598415: Added WatchedFileHandler to better support external
1826   log file rotation using e.g. newsyslog or logrotate. This handler is
1827   only useful in Unix/Linux environments.
1829 - Bug #1706381: Specifying the SWIG option "-c++" in the setup.py file
1830   (as opposed to the command line) will now write file names ending in
1831   ".cpp" too.
1833 - As specified in RFC 2616, an HTTP response like 2xx indicates that
1834   the client's request was successfully received, understood, and
1835   accepted.  Now in these cases no error is raised in urllib (issue
1836   #1177) and urllib2.
1838 - Bug #1290505: time.strptime's internal cache of locale information
1839   is now properly recreated when the locale is changed.
1841 - Patch #1685563: remove (don't add) duplicate paths in
1842   distutils.MSVCCompiler.
1844 - Added a timeout parameter to the constructor of other protocols
1845   (telnetlib, ftplib, smtplib and poplib). This is second part of the
1846   work started with create_connection() and timeout in httplib, and
1847   closes patch #723312.
1849 - Patch #1676823: Added create_connection() to socket.py, which may be
1850   called with a timeout, and use it from httplib (whose HTTPConnection
1851   and HTTPSConnection now accept an optional timeout).
1853 - Bug #978833: Revert r50844, as it broke _socketobject.dup.
1855 - Bug #1675967: re patterns pickled with Python 2.4 and earlier can
1856   now be unpickled with Python 2.5 and newer.
1858 - Patch #1630118: add a SpooledTemporaryFile class to tempfile.py.
1860 - Patch #1273829: os.walk() now has a "followlinks" parameter. If set
1861   to True (which is not the default), it visits symlinks pointing to
1862   directories.
1864 - Bug #1681228: the webbrowser module now correctly uses the default
1865   GNOME or KDE browser, depending on whether there is a session of one
1866   of those present. Also, it tries the Windows default browser before
1867   trying Mozilla variants.
1869 - Patch #1339796: add a relpath() function to os.path.
1871 - Patch #1681153: the wave module now closes a file object it opened if
1872   initialization failed.
1874 - Bug #767111: fix long-standing bug in urllib which caused an
1875   AttributeError instead of an IOError when the server's response
1876   didn't contain a valid HTTP status line.
1878 - Patch #957650: "%var%" environment variable references are now
1879   properly expanded in ntpath.expandvars(), also "~user" home
1880   directory references are recognized and handled on Windows.
1882 - Patch #1429539: pdb now correctly initializes the __main__ module
1883   for the debugged script, which means that imports from __main__ work
1884   correctly now.
1886 - The nonobvious commands.getstatus() function is now deprecated.
1888 - Patch #1393667: pdb now has a "run" command which restarts the
1889   debugged Python program, optionally with different arguments.
1891 - Patch #1649190: Adding support for _Bool to ctypes as c_bool.
1893 - Patch #1530482: add pydoc.render_doc() which returns the
1894   documentation for a thing instead of paging it to stdout, which
1895   pydoc.doc() does.
1897 - Patch #1533909: the timeit module now accepts callables in addition
1898   to strings for the code to time and the setup code. Also added two
1899   convenience functions for instantiating a Timer and calling its
1900   methods.
1902 - Patch #1537850: tempfile.NamedTemporaryFile now has a "delete"
1903   parameter which can be set to False to prevent the default
1904   delete-on-close behavior.
1906 - Patch #1581073: add a flag to textwrap that prevents the dropping of
1907   whitespace while wrapping.
1909 - Patch #1603688: ConfigParser.SafeConfigParser now checks values that
1910   are set for invalid interpolation sequences that would lead to
1911   errors on reading back those values.
1913 - Added support for the POSIX.1-2001 (pax) format to
1914   tarfile.py. Extended and cleaned up the test suite. Added a new
1915   testtar.tar.
1917 - Patch #1449244: Support Unicode strings in
1918   email.message.Message.{set_charset,get_content_charset}.
1920 - Patch #1542681: add entries for "with", "as" and "CONTEXTMANAGERS"
1921   to pydoc's help keywords.
1923 - Patch #1555098: use str.join() instead of repeated string
1924   concatenation in robotparser.
1926 - Patch #1635454: the csv.DictWriter class now includes the offending
1927   field names in its exception message if you try to write a record
1928   with a dictionary containing fields not in the CSV field names list.
1930 - Patch #1668100: urllib2 now correctly raises URLError instead of
1931   OSError if accessing a local file via the file:// protocol fails.
1933 - Patch #1677862: Require a space or tab after import in .pth files.
1935 - Patch #1192590: Fix pdb's "ignore" and "condition" commands so they
1936   trap the IndexError caused by passing in an invalid breakpoint
1937   number.
1939 - Patch #1599845: Add an option to disable the implicit calls to
1940   server_bind() and server_activate() in the constructors for
1941   TCPServer, SimpleXMLRPCServer and DocXMLRPCServer.
1943 - Bug #1531963: Make SocketServer.TCPServer's server_address always be
1944   equal to calling getsockname() on the server's socket. Fixed by
1945   patch #1545011.
1947 - Patch #742598: Add .timeout attribute to SocketServer that calls
1948   .handle_timeout() when no requests are received.
1950 - Bug #1651235: When a tuple was passed to a ctypes function call,
1951   Python would crash instead of raising an error.
1953 - Bug #1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
1954   returned string up to the first NUL character.
1956 - Patch #957003: Implement smtplib.LMTP.
1958 - Patch #1481079: add support for HTTP_REFERER to CGIHTTPServer.
1960 - Patch #1675424: Added tests for uncovered code in the zipfile
1961   module.  The KeyError raised by Zipfile.getinfo for nonexistent
1962   names now has a descriptive message.
1964 - Bug #1115886: os.path.splitext('.cshrc') gives now ('.cshrc', '').
1966 - unittest now verifies more of its assumptions. In particular,
1967   TestCase and TestSuite subclasses (not instances) are no longer
1968   accepted in TestSuite.addTest(). This should cause no
1969   incompatibility since it never made sense with ordinary subclasses
1970   -- the failure just occurred later, with a more cumbersome
1971   exception.
1973 - Patch #787789: allow to pass custom TestRunner instances to
1974   unittest's main() function.
1976 - Patches #1550273, #1550272: fix a few bugs in unittest and add a
1977   comprehensive test suite for the module.
1979 - Patch #1001604: glob.glob() now returns unicode filenames if it was
1980   given a unicode argument and os.listdir() returns unicode filenames.
1982 - Patch #1673619: setup.py identifies extension modules it doesn't
1983   know how to build and those it knows how to build but that fail to
1984   build.
1986 - Patch #912410: Replace HTML entity references for attribute values
1987   in HTMLParser.
1989 - Patch #1663234: you can now run doctest on test files and modules
1990   using "python -m doctest [-v] filename ...".
1992 - Patch #1121142: Implement ZipFile.open.
1994 - Taught setup.py how to locate Berkeley DB on Macs using MacPorts.
1996 - Added heapq.merge() for merging sorted input streams.
1998 - Added collections.namedtuple() for assigning field names to tuples.
2000 - Added itertools.izip_longest().
2002 - Have the encoding package's search function dynamically import using
2003   absolute import semantics.
2005 - Patch #1647484: Renamed GzipFile's filename attribute to name.
2007 - Patch #1517891: Mode 'a' for ZipFile now creates the file if it
2008   doesn't exist.
2010 - Patch #698833: Support file decryption in zipfile.
2012 - Patch #685268: Consider a package's __path__ in imputil.
2014 - Patch #1463026: Support default namespace in XMLGenerator.
2016 - Patch #1571379: Make trace's --ignore-dir facility work in the face
2017   of relative directory names.
2019 - Bug #1600860: Search for shared python library in LIBDIR, not
2020   lib/python/config, on "linux" and "gnu" systems.
2022 - Patch #1652681: tarfile.py: create nonexistent files in append mode
2023   and allow appending to empty files.
2025 - Bug #1124861: Automatically create pipes if GetStdHandle fails in
2026   subprocess.
2028 - Patch #1634778: add missing encoding aliases for iso8859_15 and
2029   iso8859_16.
2031 - Patch #1638243: the compiler package is now able to correctly
2032   compile a with statement; previously, executing code containing a
2033   with statement compiled by the compiler package crashed the
2034   interpreter.
2036 - Bug #1643943: Fix time.strptime's support for the %U directive.
2038 - Patch #1507247: tarfile.py: use current umask for intermediate
2039   directories.
2041 - Patch #1627441: close sockets properly in urllib2.
2043 - Bug #494589: make ntpath.expandvars behave according to its
2044   docstring.
2046 - Changed platform module API python_version_tuple() to actually
2047   return a tuple (it used to return a list).
2049 - Added new platform module APIs python_branch(), python_revision(),
2050   python_implementation() and linux_distribution().
2052 - Added support for IronPython and Jython to the platform module.
2054 - The sets module has been deprecated.  Use the built-in set/frozenset
2055   types instead.
2057 - Bug #1610795: make ctypes.util.find_library work on BSD systems.
2059 - Fixes for 64-bit Windows: In ctypes.wintypes, correct the
2060   definitions of HANDLE, WPARAM, LPARAM data types.  Make
2061   parameterless foreign function calls work.
2063 - The version number of the ctypes package changed to "1.1.0".
2065 - Bug #1627575: logging: Added _open() method to FileHandler which can
2066   be used to reopen files. The FileHandler instance now saves the
2067   encoding (which can be None) in an attribute called "encoding".
2069 - Bug #411881: logging.handlers: bare except clause removed from
2070   SMTPHandler.emit. Now, only ImportError is trapped.
2072 - Bug #411881: logging.handlers: bare except clause removed from
2073   SocketHandler.createSocket. Now, only socket.error is trapped.
2075 - Bug #411881: logging: bare except clause removed from
2076   LogRecord.__init__.  Now, only ValueError, TypeError and
2077   AttributeError are trapped.
2079 - Patch #1504073: Fix tarfile.open() for mode "r" with a fileobj
2080   argument.
2082 - Patch #1182394 from Shane Holloway: speed up HMAC.hexdigest.
2084 - Patch #1262036: Prevent TarFiles from being added to themselves
2085   under certain conditions.
2087 - Patch #1230446: tarfile.py: fix ExFileObject so that read() and
2088   tell() work correctly together with readline().
2090 - Patch #1484695: The tarfile module now raises a HeaderError
2091   exception if a buffer given to frombuf() is invalid.
2093 - Bug #1503765: Fix a problem in logging.config with spaces in comma-
2094   separated lists read from logging config files.
2096 - Patch #1604907: Fix problems in logging.handlers caused at logging
2097   shutdown when syslog handlers fail to initialize because of syslogd
2098   problems.
2100 - Patch #1608267: fix a race condition in os.makedirs() if the
2101   directory to be created is already there.
2103 - Patch #1610437: fix a tarfile bug with long filename headers.
2105 - Patch #1371075: Make ConfigParser accept optional dict type for
2106   ordering, sorting, etc.
2108 - Bug #1563807: _ctypes built on AIX fails with ld ffi error.
2110 - Bug #1598620: A ctypes Structure cannot contain itself.
2112 - Patch #1070046: Marshal new-style objects like InstanceType in
2113   xmlrpclib.
2115 - cStringIO.truncate(-1) now raises an IOError, like StringIO and
2116   regular files.
2118 - Patch #1472877: Fix Tix subwidget name resolution.
2120 - Patch #1594554: Always close a tkSimpleDialog on ok(), even if an
2121   exception occurs.
2123 - Patch #1538878: Don't make tkSimpleDialog dialogs transient if the
2124   parent window is withdrawn.
2126 - Bug #1597824: return the registered function from atexit.register()
2127   to facilitate usage as a decorator.
2129 - Patch #1360200: Use unmangled_version RPM spec field to deal with
2130   file name mangling.
2132 - Patch #1359217: Process 2xx response in an ftplib transfer that
2133   precedes an 1xx response.
2135 - Patch #1355023: support whence argument for GzipFile.seek.
2137 - Patch #1065257: Support passing open files as body in
2138   HTTPConnection.request().
2140 - Bug #1569790: mailbox.py: Maildir.get_folder() and MH.get_folder()
2141   weren't passing the message factory on to newly created Maildir/MH
2142   objects.
2144 - Patch #1514543: mailbox.py: In the Maildir class, report errors if
2145   there's a filename clash instead of possibly losing a message.
2146   (Patch by David Watson.)
2148 - Patch #1514544: Try to ensure that messages/indexes have been
2149   physically written to disk after calling .flush() or
2150   .close(). (Patch by David Watson.)
2152 - Patch #1592250: Add elide argument to Tkinter.Text.search.
2154 - Patch #838546: Make terminal become controlling in pty.fork().
2156 - Patch #1351744: Add askyesnocancel helper for tkMessageBox.
2158 - Patch #1060577: Extract list of RPM files from spec file in
2159   bdist_rpm.
2161 - Bug #1586613: fix zlib and bz2 codecs' incremental en/decoders.
2163 - Patch #1583880: fix tarfile's problems with long names and posix/
2164   GNU modes.
2166 - Bug #1586448: the compiler module now emits the same bytecode for
2167   list comprehensions as the builtin compiler, using the LIST_APPEND
2168   opcode.
2170 - Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
2171   fix all codecs file wrappers to work correctly with the "with"
2172   statement (bug #1586513).
2174 - Lib/modulefinder.py now handles absolute and relative imports
2175   correctly.
2177 - Patch #1567274: Support SMTP over TLS.
2179 - Patch #1560695: Add .note.GNU-stack to ctypes' sysv.S so that ctypes
2180   isn't considered as requiring executable stacks.
2182 - ctypes callback functions only support 'fundamental' data types as
2183   result type.  Raise an error when something else is used.  This is a
2184   partial fix for Bug #1574584.
2186 - Fix turtle so that time.sleep is imported for the entire library.
2187   Allows the demo2 function to be executed on its own instead of only
2188   when the module is run as a script.
2190 - Bug #813342: Start the IDLE subprocess with -Qnew if the parent is
2191   started with that option.
2193 - Bug #1565150: Fix subsecond processing for os.utime on Windows.
2195 - Support for MSVC 8 was added to bdist_wininst.
2197 - Bug #1446043: correctly raise a LookupError if an encoding name
2198   given to encodings.search_function() contains a dot.
2200 - Bug #1560617: in pyclbr, return full module name not only for
2201   classes, but also for functions.
2203 - Bug #1457823: cgi.(Sv)FormContentDict's constructor now takes
2204   keep_blank_values and strict_parsing keyword arguments.
2206 - Bug #1566602: correct failure of posixpath unittest when $HOME ends
2207   with a slash.
2209 - Bug #1565661: in webbrowser, split() the command for the default
2210   GNOME browser in case it is a command with args.
2212 - Made the error message for time.strptime when the data data and
2213   format do match be more clear.
2215 - Fix a bug in traceback.format_exception_only() that led to an error
2216   being raised when print_exc() was called without an exception set.
2217   In version 2.4, this printed "None", restored that behavior.
2219 - Make webbrowser.BackgroundBrowser usable in Windows (it wasn't
2220   because the close_fds arg to subprocess.Popen is not supported).
2222 - Reverted patch #1504333 to sgmllib because it introduced an infinite
2223   loop.
2225 - Patch #1553314: Fix the inspect.py slowdown that was hurting IPython
2226   & SAGE by adding smarter caching in inspect.getmodule()
2228 - Fix missing import of the types module in logging.config.
2230 - Patch #1550886: Fix decimal module context management implementation
2231   to match the localcontext() example from PEP 343.
2233 - Bug #1545341: The 'classifier' keyword argument to the Distutils
2234   setup() function now accepts tuples as well as lists.
2236 - Bug #1541863: uuid.uuid1 failed to generate unique identifiers on
2237   systems with low clock resolution.
2239 - Bug #1531862: Do not close standard file descriptors in subprocess.
2241 - idle: Honor the "Cancel" action in the save dialog (Debian bug
2242   #299092).
2244 - Fix utf-8-sig incremental decoder, which didn't recognise a BOM when
2245   the first chunk fed to the decoder started with a BOM, but was
2246   longer than 3 bytes.
2248 - The implementation of UnicodeError objects has been simplified
2249   (start and end attributes are now stored directly as Py_ssize_t
2250   members).
2252 - Issue #829951: In the smtplib module, SMTP.starttls() now complies
2253   with RFC 3207 and forgets any knowledge obtained from the server not
2254   obtained from the TLS negotiation itself.  Patch contributed by Bill
2255   Fenner.
2257 - Issue #1339: The smtplib.SMTP class has been refactored a bit such
2258   that the SMTP.starttls() caller no longer needs to call ehlo()
2259   beforehand.  SMTP.starttls() now raises an exception of the server
2260   does not claim to support starttls.  Adds the
2261   SMTP.ehlo_or_helo_if_needed() method.  Patch contributed by Bill
2262   Fenner.
2264 - Patch #1089358: Add signal.siginterrupt, a wrapper around
2265   siginterrupt(3).
2267 Extension Modules
2268 -----------------
2270 - Patch #1657: added select.epoll and select.kqueue.
2272 - Patch #1506171: added operator.methodcaller().
2274 - Patch #1826: operator.attrgetter() now supports dotted attribute paths.
2276 - Patch #1957: syslogmodule: Release GIL when calling syslog(3).
2278 - Bug #2112: mmap.error is now a subclass of EnvironmentError and not
2279   a direct EnvironmentError.
2281 - Bug #2111: mmap segfaults when trying to write a block opened with
2282   PROT_READ.
2284 - Bug #2063: correct order of utime and stime in os.times() result on
2285   Windows.
2287 - Patch #1736: Fix file name handling of _msi.FCICreate.
2289 - Updated ``big5hkscs`` codec to the HKSCS revision of 2004.
2291 - Issue #1940: make it possible to use curses.filter() before
2292   curses.initscr() as the documentation says.
2294 - Backport of _fileio module from Python 3.0.
2296 - Patch #1087741: mmap.mmap is now a class, not a factory function. It
2297   is also subclassable now.
2299 - Patch #1648: added ``sys.getprofile()`` and ``sys.gettrace()``.
2301 - Patch #1663329: added ``os.closerange()`` function to quickly close
2302   a range of file descriptors without considering errors.
2304 - Patch #976880: ``mmap`` objects now have an ``rfind`` method that
2305   works as expected.  ``mmap.find`` also takes an optional ``end``
2306   parameter.
2308 - _winreg's HKEY object has gained __enter__ and __exit__ methods to
2309   support the context manager protocol.  The _winreg module also
2310   gained a new function ``ExpandEnvironmentStrings`` to expand
2311   REG_EXPAND_SZ keys.
2313 - itertools.starmap() now accepts any iterable input. Previously, it
2314   required the function inputs to be tuples.
2316 - itertools.chain() now has an alternate constructor,
2317   chain.from_iterable().
2319 - Issue #1646: Make socket support TIPC. The socket module now has
2320   support for TIPC under Linux, see http://tipc.sf.net/ for more
2321   information.
2323 - Added interface for Windows' WSAIoctl to socket object and added an
2324   example for a simple network sniffer.
2326 - Bug #1301: Bad assert in _tkinter fixed.
2328 - Added bdist_wininst executable for VS 2008.
2330 - Bug #1604: collections.deque.__init__(iterable) now clears any prior
2331   contents before adding elements from the iterable.  This fix brings
2332   the behavior into line with that for list.__init__().
2334 - Added wide char functions to msvcrt module: getwch, getwche, putwch
2335   and ungetwch. The functions accept or return unicode.
2337 - os.access now returns True on Windows for any existing directory.
2339 - Added warnpy3k function to the warnings module.
2341 - Marshal.dumps() now expects exact type matches for int, long, float,
2342   complex, tuple, list, dict, set, and frozenset.  Formerly, it would
2343   silently miscode subclasses of those types.  Now, it raises a
2344   ValueError instead.
2346 - Patch #1388440: Add set_completion_display_matches_hook and
2347   get_completion_type to readline.
2349 - Bug #1649098: Avoid declaration of zero-sized array declaration in
2350   structure.
2352 - Removed the rgbimg module; been deprecated since Python 2.5.
2354 - Bug #1721309: prevent bsddb module from freeing random memory.
2356 - Bug #1233: fix bsddb.dbshelve.DBShelf append method to work as
2357   intended for RECNO databases.
2359 - pybsddb.sf.net Bug #477182: Load the database flags at database open
2360   time so that opening a database previously created with the DB_DUP
2361   or DB_DUPSORT flag set will keep the proper behavior on subsequent
2362   opens.  Specifically: dictionary assignment to a DB object will
2363   replace all values for a given key when the database allows
2364   duplicate values.  DB users should use DB.put(k, v) when they want
2365   to store duplicates; not DB[k] = v.
2367 - Add the bsddb.db.DBEnv.lock_id_free method.
2369 - Bug #1686475: Support stat'ing open files on Windows again.
2371 - Patch #1185447: binascii.b2a_qp() now correctly quotes binary
2372   characters with ASCII value less than 32. Also, it correctly quotes
2373   dots only if they occur on a single line, as opposed to the previous
2374   behavior of quoting dots if they are the second character of any
2375   line.
2377 - Bug #1622896: fix a rare corner case where the bz2 module raised an
2378   error in spite of a succesful compression.
2380 - Patch #1654417: make operator.{get,set,del}slice use the full range
2381   of Py_ssize_t.
2383 - Patch #1646728: datetime.fromtimestamp fails with negative
2384   fractional times.  With unittest.
2386 - Patch #1490190: posixmodule now includes os.chflags() and
2387   os.lchflags() functions on platforms where the underlying system
2388   calls are available.
2390 - Patch #1494140: Add documentation for the new struct.Struct object.
2392 - Patch #1432399: Support the HCI protocol for bluetooth sockets
2394 - Patch #1657276: Make NETLINK_DNRTMSG conditional.
2396 - Bug #1653736: Complain about keyword arguments to time.isoformat.
2398 - Bug #1486663: don't reject keyword arguments for subclasses of
2399   builtin types.
2401 - Patch #1610575: The struct module now supports the 't' code, for C99
2402   _Bool.
2404 - Patch #1635058: ensure that htonl and friends never accept or return
2405   negative numbers, per the underlying C implementation.
2407 - Patch #1544279: Improve thread-safety of the socket module by moving
2408   the sock_addr_t storage out of the socket object.
2410 - Patch #1019808: fix bug that causes an incorrect error to be
2411   returned when a socket timeout is set and a connection attempt
2412   fails.
2414 - Speed up function calls into the math module.
2416 - Bug #1588217: don't parse "= " as a soft line break in binascii's
2417   a2b_qp() function, instead leave it in the string as quopri.decode()
2418   does.
2420 - Bug #1599782: Fix segfault on bsddb.db.DB().type().
2422 - Bug #1567666: Emulate GetFileAttributesExA for Win95.
2424 - Patch #1576166: Support os.utime for directories on Windows NT+.
2426 - Patch #1572724: fix typo ('=' instead of '==') in _msi.c.
2428 - Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
2429   when encoding non-BMP unicode characters.
2431 - Bug #1556784: allow format strings longer than 127 characters in
2432   datetime's strftime function.
2434 - Fix itertools.count(n) to work with negative numbers again.
2436 - RLIMIT_SBSIZE was added to the resource module where available.
2438 - Bug #1551427: fix a wrong NULL pointer check in the win32 version of
2439   os.urandom().
2441 - Bug #1548092: fix curses.tparm seg fault on invalid input.
2443 - Patch #1114: fix curses module compilation on 64-bit AIX, & possibly
2444   other 64-bit LP64 platforms where attr_t is not the same size as a
2445   long.  (Contributed by Luke Mewburn.)
2447 - Bug #1550714: fix SystemError from itertools.tee on negative value
2448   for n.
2450 - Fixed a few bugs on cjkcodecs:
2451   - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT
2452     correctly.
2453   - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312
2454     codepoints to conform the standard.
2455   - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2
2456     codepoints now.
2458 - Bug #1552726: in readline.c, avoid repeatedly polling in interactive
2459   mode by only placing a timeout on the select() if an input hook has
2460   been defined.  This prevents an interactive Python from waking up 10
2461   times per second.  Patch by Richard Boulton.
2463 - fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments
2464   were transposed.
2466 - Added support for linking the bsddb module against BerkeleyDB 4.5.x
2467   and 4.6.x.
2469 - Bug #1633621: if curses.resizeterm() or curses.resize_term() is
2470   called, update _curses.LINES, _curses.COLS, curses.LINES and
2471   curses.COLS.
2473 - Fix an off-by-one bug in locale.strxfrm().
2475 - Fix libffi configure for hppa*-*-linux* | parisc*-*-linux*.
2477 - Build using system ffi library on arm*-linux*.
2479 - Bug #1372: zlibmodule.c: int overflow in PyZlib_decompress
2481 - bsddb module: Fix memory leak when using database cursors on
2482   databases without a DBEnv.
2484 - The sqlite3 module was updated to pysqlite 2.4.1.
2486 Tests
2487 -----
2489 - Refactor test_logging to use unittest.
2491 - Refactor test_profile and test_cprofile to use the same code to
2492   profile.
2494 - Make test_runpy reentrant by fixing _check_module to clear out any
2495   module being tested.  Was causing an error by __import__ doing a
2496   reload on the second run and thus suppressing bytecode recreation.
2498 - Capture socket connection resets and timeouts in test_socket_ssl and
2499   test_urllib2net and raise test.test_support.ResourceDenied.
2501 - Patch #1559413: Fix test_cmd_line if sys.executable contains a
2502   space.
2504 - Added test.test_support.TransientResource which is a context manager
2505   to surround calls to resources that are not guaranteed to work even
2506   if test.test_support.requires says that the resource should exist.
2508 - Added a test for slicing of an exception.
2510 - Added test.test_support.EnvironmentVarGuard.  It's a class that
2511   provides a context manager so that one can temporarily set or unset
2512   environment variables.
2514 - Added some tests for modulefinder.
2516 - Converted test_imp to use unittest.
2518 - Fix bsddb test_basics.test06_Transactions to check the version
2519   number properly.
2521 - test.test_support.catch_warning is a new context manager that can be
2522   used to catch the warnings issued by the warning framework.
2524 Tools
2525 -----
2527 - Tools/scripts/reindent.py now creates the backup file using
2528   shutil.copy to preserve user/group and permissions. Added also a
2529   --nobackup option to not create the backup if the user is concerned
2530   regarding this.  Check issue 1050828 for more details.
2532 - Tools/scripts/win_add2path.py was added. The simple script modifes
2533   the PATH environment var of the HKCU tree and adds the python bin
2534   and script directory.
2536 - Tools/18n/pygettext.py was added to the list of scripts installed by
2537   Tools/scripts/setup.py (tracker item 642309).
2539 - Added IronPython and Jython support to pybench (part of which was
2540   patch #1563844).
2542 - Made some minor changes to pybench output to allow the user to see
2543   which Python version is running pybench.
2545 - Added support for the new platform module feature
2546   platform.python_implementation(); this will now be saved in the
2547   benchmark pickle.
2550 Documentation
2551 -------------
2553 - RFE #1765140: Updated documentation on FileHandler and subclasses to
2554   include new optional delay argument.
2556 - Bug #932563: Added section on getting contextual information into
2557   logging output, and added documentation for the new LoggerAdapter
2558   class.
2560 - Bug #1295: Added information about caching of formatted exception
2561   information in the LogRecord by Formatter.format().
2563 - Bug #1637365: add subsection about "__name__ == __main__" to the
2564   Python tutorial.
2566 - Patch #1698768: updated the "using Python on the Mac" intro.
2568 - Bug #1569057: Document that calling file.next() when the file is
2569   open for writing is undefined.
2571 - Patch #1489771: the syntax rules in Python Reference Manual were
2572   updated to reflect the current Python syntax.
2574 - Patch #1686451: Fix return type for
2575   PySequence_{Count,Index,Fast_GET_SIZE}.
2577 - Patch #1679379: add documentation for fnmatch.translate().
2579 - Bug #1629566: clarify the docs on the return values of parsedate()
2580   and parsedate_tz() in email.utils and rfc822.
2582 - Patch #1671450: add a section about subclassing builtin types to the
2583   "extending and embedding" tutorial.
2585 - Bug #1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next
2586   docs.
2588 - Bug #1565919: document set types in the Language Reference.
2590 - Bug #1546052: clarify that PyString_FromString(AndSize) copies the
2591   string pointed to by its parameter.
2593 - Bug #1566663: remove obsolete example from datetime docs.
2595 - Bug #1541682: Fix example in the "Refcount details" API docs.
2596   Additionally, remove a faulty example showing PySequence_SetItem
2597   applied to a newly created list object and add notes that this isn't
2598   a good idea.
2601 Tools/Demos
2602 -----------
2604 - Patch #1552024: add decorator support to unparse.py demo script.
2606 - Make auto-generated python.vim file list built-ins and exceptions in
2607   alphatbetical order.  Makes output more deterministic and easier to
2608   tell if the file is stale or not.
2610 - Bug #1546372: Fixed small bugglet in pybench that caused a missing
2611   file not to get reported properly.
2614 Build
2615 -----
2617 - Have the search path for building extensions follow the declared
2618   order in $CPPFLAGS and $LDFLAGS when adding directories from those
2619   environment variables.
2621 - Bug #1983: Added a check to pyport to verify that sizeof(pid_t) is
2622   smaller or equal sizeof(long).
2624 - Bug #1234: Fixed semaphore errors on AIX 5.2
2626 - Issue #1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj.
2628 - Removed PCbuild8/ directory and added a new build directory for VS
2629   2005 based on the VS 2008 build directory to PC/VS8.0. The script
2630   PCbuild/vs8to9.py was added to sync changes from PCbuild to
2631   PC/VS8.0.
2633 - Moved PCbuild/ directory for VS 2003 to PC/VS7.1 and renamed
2634   PCBuild9/ directory to PCBuild/.
2636 - Bug #1699: Define _BSD_SOURCE only on OpenBSD.
2638 - Bug #1608: use -fwrapv when GCC supports it.  This is important,
2639   newer GCC versions may optimize away overflow buffer overflow checks
2640   without this option!
2642 - Patch #1418: Make the AC_REPLACE_FUNCS object files actually work.
2644 - Add a FAST_LOOPS build option that speeds-up looping by trading away
2645   periodic threadstate and signal checking in tight loops.  By
2646   default, this option is turned-off.  It should only be enabled in
2647   debugged, performance critical applications.
2649 - Patch #786737: Allow building in a tree of symlinks pointing to a
2650   readonly source.
2652 - Bug #1737210: Change Manufacturer of Windows installer to PSF.
2654 - Bug #1746880: Correctly install DLLs into system32 folder on Win64.
2656 - Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD
2657   4.1+.
2659 - Stop supporting AtheOS and cause a build error in configure for the
2660   platform.
2662 - Bug #1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS
2663   returned by python-config if Python was built with --enable-shared
2664   because that prevented the shared library from being used.
2666 - Patch #1569798: fix a bug in distutils when building Python from a
2667   directory within sys.exec_prefix.
2669 - Bug #1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86.
2671 - Disable _XOPEN_SOURCE on NetBSD 1.x.
2673 - configure now checks whether gcc supports the PyArg_ParseTuple
2674   format attribute.
2676 - Bug #1578513: Cross compilation was broken by a change to configure.
2677   Repair so that it's back to how it was in 2.4.3.
2679 - Patch #1576954: Update VC6 build directory; remove redundant files
2680   in VC7.
2682 - Bug #1568842: Fix test for uintptr_t.
2684 - Patch #1540470: for OpenBSD 4.0.
2686 - Fix build failure on kfreebsd and on the hurd.
2688 - Fix the build of the library reference in info format.
2690 - Allow Emacs 22 for building the documentation in info format.
2692 - Makefile.pre.in(buildbottest): Run an optional script
2693   pybuildbot.identify to include some information about the build
2694   environment.
2697 C API
2698 -----
2700 - Unified naming convention for free lists and their limits. All free
2701   lists in Object/ are named ``free_list``, the counter ``numfree``
2702   and the upper limit is a macro ``PyName_MAXFREELIST`` inside an
2703   #ifndef block.
2705 - ``PySet_Add()`` can now modify a newly created frozenset.  Similarly
2706   to ``PyTuple_SetItem``, it can be used to populate a brand new
2707   frozenset; but it does not steal a reference to the added item.
2709 - Added ``PySet_Check()`` and ``PyFrozenSet_Check()`` to the set API.
2711 - Backport of PyUnicode_FromString(), _FromStringAndSize(), _Format
2712   and _FormatV from Python 3.0. Made PyLong_AsSsize_t and
2713   PyLong_FromSsize_t public functions.
2715 - Patch #1720595: add T_BOOL to the range of structmember types.
2717 - Issue #1534: Added ``PyFloat_GetMax()``, ``PyFloat_GetMin()`` and
2718   ``PyFloat_GetInfo()`` to the float API.
2720 - Issue #1521: On 64bit platforms, using PyArgs_ParseTuple with the t#
2721   of w# format code incorrectly truncated the length to an int, even
2722   when PY_SSIZE_T_CLEAN is set.  The str.decode method used to return
2723   incorrect results with huge strings.
2725 - Issue #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE,
2726   Py_TYPE and Py_REFCNT.
2728 - PEP 3123: Provide forward compatibility with Python 3.0, while
2729   keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size,
2730   and PyVarObject_HEAD_INIT.
2732 - Py_ssize_t fields work in structmember when HAVE_LONG_LONG is not
2733   defined.
2735 - Patch #1733960: Allow T_LONGLONG to accept ints.
2737 - T_PYSSIZET can now be used in PyMemberDef lists for Py_ssize_t members.
2739 - Added a new API function ``PyImport_ImportModuleNoBlock``.
2741 - Bug #1637022: Prefix AST symbols with _Py_.
2743 - Fix some leftovers from the conversion from int to Py_ssize_t
2744   (relevant to strings and sequences of more than 2**31 items).
2746 - Make _PyGILState_NoteThreadState() static, it was not used anywhere
2747   outside of pystate.c and should not be necessary.
2749 - ``PyImport_Import`` and ``PyImport_ImportModule`` now always do
2750   absolute imports. In earlier versions they might have used relative
2751   imports under some conditions.
2753 - Added case insensitive comparison methods ``PyOS_stricmp(char*,
2754   char*)`` and ``PyOS_strnicmp(char*, char*, Py_ssize_t)``.
2756 - Bug #1542693: remove semi-colon at end of PyImport_ImportModuleEx
2757   macro so it can be used as an expression.
2760 Windows
2761 -------
2763 - Patch #1706: Drop support for Win9x, WinME and NT4. Python now
2764   requires Windows 2000 or greater. The _WINVER and NTDDI_VERSION
2765   macros are set to Win2k for x86/32bit builds and WinXP for AMD64
2766   builds.
2768 - Conditionalize definition of _CRT_SECURE_NO_DEPRECATE and
2769   _CRT_NONSTDC_NO_DEPRECATE.
2771 - Bug #1216: Restore support for Visual Studio 2002.
2777 - cfmfile now raises a DeprecationWarning.
2779 - buildtools now raises a DeprecationWarning.
2781 - Removed the macfs module.  It had been deprecated since Python 2.5.
2782   This lead to the deprecation of macostools.touched() as it relied
2783   solely on macfs and was a no-op under OS X.
2785 ----
2787 **(For information about older versions, consult the HISTORY file.)**