2002-09-20 11:16:59 -03:00
|
|
|
+++++++++++
|
|
|
|
Python News
|
|
|
|
+++++++++++
|
|
|
|
|
2004-11-04 01:23:17 -04:00
|
|
|
(editors: check NEWS.help for information about editing NEWS using ReST.)
|
|
|
|
|
2008-12-03 12:46:14 -04:00
|
|
|
What's New in Python 3.1 alpha 0
|
|
|
|
================================
|
2008-11-21 11:13:37 -04:00
|
|
|
|
2008-12-18 13:08:32 -04:00
|
|
|
*Release date: XX-XXX-200X*
|
2008-11-21 11:13:37 -04:00
|
|
|
|
|
|
|
Core and Builtins
|
|
|
|
-----------------
|
|
|
|
|
2009-02-09 13:15:59 -04:00
|
|
|
- Issue #4575: Fix Py_IS_INFINITY macro to work correctly on x87 FPUs:
|
|
|
|
it now forces its argument to double before testing for infinity.
|
|
|
|
|
2009-02-08 17:07:20 -04:00
|
|
|
- Issue #5137: Make len() correctly raise a TypeError when a __len__ method
|
|
|
|
returns a non-number type.
|
|
|
|
|
2009-02-08 11:00:52 -04:00
|
|
|
- Issue #5182: Removed memoryview.__str__.
|
|
|
|
|
2009-02-01 09:59:22 -04:00
|
|
|
- Issue #1717: Removed builtin cmp() function, dropped tp_compare
|
|
|
|
slot, the C API functions PyObject_Compare and PyUnicode_Compare and
|
2009-02-02 16:36:42 -04:00
|
|
|
the type definition cmpfunc. The tp_compare slot has been renamed
|
|
|
|
to tp_reserved, and is reserved for future usage.
|
2009-02-01 08:13:56 -04:00
|
|
|
|
2009-02-02 18:55:09 -04:00
|
|
|
- Issue 1242657: the __len__() and __length_hint__() calls in several tools
|
|
|
|
were suppressing all exceptions. These include list() and bytearray().
|
|
|
|
|
2009-01-28 17:25:58 -04:00
|
|
|
- Issue #4707: round(x, n) now returns an integer if x is an integer.
|
|
|
|
Previously it returned a float.
|
|
|
|
|
2009-01-25 12:34:23 -04:00
|
|
|
- Issue #4753: By enabling a configure option named '--with-computed-gotos'
|
|
|
|
on compilers that support it (notably: gcc, SunPro, icc), the bytecode
|
|
|
|
evaluation loop is compiled with a new dispatch mechanism which gives
|
|
|
|
speedups of up to 20%, depending on the system, on various benchmarks.
|
|
|
|
|
2009-01-22 06:11:36 -04:00
|
|
|
- Issue #4874: Most builtin decoders now reject unicode input.
|
|
|
|
|
2009-01-20 16:45:53 -04:00
|
|
|
- Issue #4842: Don't allow trailing 'L' when constructing an integer
|
|
|
|
from a string.
|
|
|
|
|
2009-01-19 11:15:02 -04:00
|
|
|
- Issue #4991: os.fdopen now raises an OSError for invalid file descriptors.
|
|
|
|
|
2009-01-17 17:06:43 -04:00
|
|
|
- Issue #4838: When a module is deallocated, free the memory backing the
|
|
|
|
optional module state data.
|
|
|
|
|
2009-01-17 06:04:45 -04:00
|
|
|
- Issue #4910: Rename nb_long slot to nb_reserved, and change its
|
|
|
|
type to (void *).
|
|
|
|
|
2009-01-13 18:59:11 -04:00
|
|
|
- Issue #4935: The overflow checking code in the expandtabs() method common
|
|
|
|
to str, bytes and bytearray could be optimized away by the compiler, letting
|
|
|
|
the interpreter segfault instead of raising an error.
|
|
|
|
|
2009-01-12 19:58:21 -04:00
|
|
|
- Issue #3720: Fix a crash when an iterator modifies its class and removes its
|
|
|
|
__next__ method.
|
|
|
|
|
2009-01-12 16:49:19 -04:00
|
|
|
- Issue #4910: Builtin int() function and PyNumber_Long/PyNumber_Int API
|
|
|
|
function no longer attempt to call the __long__ slot to convert an object
|
|
|
|
to an integer. Only the __int__ and __trunc__ slots are examined.
|
|
|
|
|
2009-01-12 04:21:03 -04:00
|
|
|
- Issue #4893: Use NT threading on CE.
|
|
|
|
|
2009-01-12 03:59:10 -04:00
|
|
|
- Issue #4915: Port sysmodule to Windows CE.
|
|
|
|
|
2009-01-10 11:40:25 -04:00
|
|
|
- Issue #4868: utf-8, utf-16 and latin1 decoding are now 2x to 4x faster. The
|
|
|
|
common cases are optimized thanks to a dedicated fast path and a moderate
|
|
|
|
amount of loop unrolling.
|
|
|
|
|
2009-01-09 18:27:08 -04:00
|
|
|
- Issue #4074: Change the criteria for doing a full garbage collection (i.e.
|
|
|
|
collecting the oldest generation) so that allocating lots of objects without
|
|
|
|
destroying them does not show quadratic performance. Based on a proposal by
|
|
|
|
Martin von Löwis at
|
|
|
|
http://mail.python.org/pipermail/python-dev/2008-June/080579.html.
|
|
|
|
|
2009-01-20 20:19:28 -04:00
|
|
|
- Issue #4604: Some objects of the I/O library could still be used after
|
2009-01-09 15:54:29 -04:00
|
|
|
having been closed (for instance, a read() call could return some
|
|
|
|
previously buffered data). Patch by Dmitry Vasiliev.
|
|
|
|
|
2009-01-09 14:53:14 -04:00
|
|
|
- Issue #4705: Fix the -u ("unbuffered binary stdout and stderr") command-line
|
|
|
|
flag to work properly. Furthermore, when specifying -u, the text stdout
|
|
|
|
and stderr streams have line-by-line buffering enabled (the default being
|
|
|
|
to buffer arbitrary chunks of data).
|
|
|
|
|
2009-01-08 23:58:09 -04:00
|
|
|
- The internal table, _PyLong_DigitValue, is now an array of unsigned chars
|
|
|
|
instead of ints (reducing its size from 4 to 8 times thereby reducing
|
|
|
|
Python's overall memory).
|
|
|
|
|
2009-01-06 15:02:24 -04:00
|
|
|
- Issue #1180193: When importing a module from a .pyc (or .pyo) file with
|
|
|
|
an existing .py counterpart, override the co_filename attributes of all
|
|
|
|
code objects if the original filename is obsolete (which can happen if the
|
|
|
|
file has been renamed, moved, or if it is accessed through different paths).
|
|
|
|
Patch by Ziga Seilnacht and Jean-Paul Calderone.
|
|
|
|
|
2009-01-03 12:59:18 -04:00
|
|
|
- Issue #4580: Fix slicing of memoryviews when the item size is greater than
|
|
|
|
one byte. Also fixes the meaning of len() so that it returns the number of
|
|
|
|
items, rather than the size in bytes.
|
|
|
|
|
2009-01-02 16:47:48 -04:00
|
|
|
- Issue #4075: Use OutputDebugStringW in Py_FatalError.
|
|
|
|
|
2009-01-01 19:05:36 -04:00
|
|
|
- Issue #4747: When the terminal does not use utf-8, executing a script with
|
|
|
|
non-ascii characters in its name could fail with a "SyntaxError: None" error.
|
|
|
|
|
2009-01-01 12:03:45 -04:00
|
|
|
- Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
|
2009-01-01 12:09:52 -04:00
|
|
|
file with `bytes' filename on Windows.
|
2009-01-01 12:03:45 -04:00
|
|
|
|
2009-01-01 11:35:33 -04:00
|
|
|
- Issue #3680: Reference cycles created through a dict, set or deque iterator
|
|
|
|
did not get collected.
|
|
|
|
|
2008-12-30 03:29:12 -04:00
|
|
|
- Issue #4701: PyObject_Hash now implicitly calls PyType_Ready on types
|
|
|
|
where the tp_hash and tp_dict slots are both NULL.
|
|
|
|
|
2008-12-28 07:44:14 -04:00
|
|
|
- Issue #4759: None is now allowed as the first argument of
|
|
|
|
bytearray.translate(). It was always allowed for bytes.translate().
|
|
|
|
|
2008-12-22 23:51:14 -04:00
|
|
|
- Added test case to ensure attempts to read from a file opened for writing
|
|
|
|
fail.
|
|
|
|
|
2008-12-20 09:14:23 -04:00
|
|
|
- Issue #3106: Speedup some comparisons (str/str and int/int).
|
|
|
|
|
2008-12-18 07:06:25 -04:00
|
|
|
- Issue #2183: Simplify and optimize bytecode for list, dict and set
|
|
|
|
comprehensions. Original patch for list comprehensions by Neal Norwitz.
|
|
|
|
|
2008-12-17 19:18:19 -04:00
|
|
|
- Issue #2467: gc.DEBUG_STATS reported invalid elapsed times. Also, always
|
|
|
|
print elapsed times, not only when some objects are uncollectable /
|
|
|
|
unreachable. Original patch by Neil Schemenauer.
|
|
|
|
|
2008-12-17 12:19:07 -04:00
|
|
|
- Issue #3439: Add a bit_length method to int.
|
|
|
|
|
2008-12-11 14:03:03 -04:00
|
|
|
- Issue #2173: When getting device encoding, check that return value of
|
|
|
|
nl_langinfo is not the empty string. This was causing silent build
|
|
|
|
failures on OS X.
|
|
|
|
|
2008-12-11 02:18:33 -04:00
|
|
|
- Issue #4597: Fixed several opcodes that weren't always propagating
|
|
|
|
exceptions.
|
|
|
|
|
|
|
|
- Issue #4589: Fixed exception handling when the __exit__ function of a
|
2008-12-10 19:49:33 -04:00
|
|
|
context manager returns a value that cannot be converted to a bool.
|
|
|
|
|
2008-12-06 11:33:31 -04:00
|
|
|
- Issue #4445: Replace "sizeof(PyBytesObject)" with
|
|
|
|
"offsetof(PyBytesObject, ob_sval) + 1" when allocating memory for
|
|
|
|
bytes instances. On a typical machine this saves 3 bytes of memory
|
|
|
|
(on average) per allocation of a bytes instance.
|
|
|
|
|
2008-12-05 04:26:55 -04:00
|
|
|
- Issue #4533: File read operation was dreadfully slow due to a slowly
|
|
|
|
growing read buffer. Fixed by using the same growth rate algorithm as
|
|
|
|
Python 2.x.
|
|
|
|
|
2008-12-06 17:27:53 -04:00
|
|
|
- Issue #4509: Various issues surrounding resize of bytearray objects to
|
|
|
|
which there are buffer exports (e.g. memoryview instances).
|
|
|
|
|
2008-12-07 11:30:06 -04:00
|
|
|
- Issue #4233: Changed semantic of ``_fileio.FileIO``'s ``close()``
|
|
|
|
method on file objects with closefd=False. The file descriptor is still
|
|
|
|
kept open but the file object behaves like a closed file. The ``FileIO``
|
|
|
|
object also got a new readonly attribute ``closefd``.
|
2008-11-26 13:22:04 -04:00
|
|
|
|
2008-12-07 16:14:49 -04:00
|
|
|
- Issue #4569: Interpreter crash when mutating a memoryview with an item size
|
|
|
|
larger than 1.
|
|
|
|
|
2008-12-27 15:03:36 -04:00
|
|
|
- Issue #4748: Lambda generators no longer return a value.
|
|
|
|
|
2008-11-21 11:13:37 -04:00
|
|
|
Library
|
|
|
|
-------
|
|
|
|
|
2009-02-09 18:33:59 -04:00
|
|
|
- Issue #5122: Synchronize tk load failure check to prevent a potential
|
|
|
|
deadlock.
|
|
|
|
|
2009-02-09 12:44:24 -04:00
|
|
|
- Issue #4890: Handle empty text search pattern in Tkinter.Text.search.
|
|
|
|
|
2009-02-07 23:37:27 -04:00
|
|
|
- Issue #4512 (part 2): Promote ``ZipImporter._get_filename()`` to be a
|
|
|
|
public documented method ``ZipImporter.get_filename()``.
|
|
|
|
|
2009-02-07 21:58:26 -04:00
|
|
|
- Issue #4195: The ``runpy`` module (and the ``-m`` switch) now support
|
|
|
|
the execution of packages by looking for and executing a ``__main__``
|
|
|
|
submodule when a package name is supplied. Initial patch by Andi
|
|
|
|
Vajda.
|
|
|
|
|
2009-02-06 19:16:11 -04:00
|
|
|
- Issue #1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that will
|
|
|
|
not be used again (this requires Tcl/Tk 8.3.1), also fix a memory leak in
|
|
|
|
Tkapp_Call when calling from a thread different than the one that created
|
|
|
|
the Tcl interpreter. Patch by Robert Hancock.
|
|
|
|
|
2009-02-05 21:32:42 -04:00
|
|
|
- Issue #4285: Change sys.version_info to be a named tuple. Patch by
|
|
|
|
Ross Light.
|
|
|
|
|
2009-02-05 21:18:36 -04:00
|
|
|
- Issue #1520877: Now distutils.sysconfig reads $AR from the
|
|
|
|
environment/Makefile. Patch by Douglas Greiman.
|
|
|
|
|
2009-02-05 20:38:35 -04:00
|
|
|
- Issue #1276768: The verbose option was not used in the code of
|
|
|
|
distutils.file_util and distutils.dir_util.
|
|
|
|
|
2009-02-05 18:56:14 -04:00
|
|
|
- Issue #5132: Fixed trouble building extensions under Solaris with
|
|
|
|
--enabled-shared activated. Initial patch by Dave Peterson.
|
|
|
|
|
2009-02-02 17:17:09 -04:00
|
|
|
- Issue #1581476: Always use the Tcl global namespace when calling into Tcl.
|
|
|
|
|
2009-02-03 00:19:10 -04:00
|
|
|
- The shelve module now defaults to pickle protocol 3.
|
|
|
|
|
2009-01-29 21:31:34 -04:00
|
|
|
- Fix a bug in the trace module where a bytes object from co_lnotab had its
|
|
|
|
items being passed through ord().
|
|
|
|
|
2009-01-29 16:26:59 -04:00
|
|
|
- Issue #2047: shutil.move() could believe that its destination path was
|
|
|
|
inside its source path if it began with the same letters (e.g. "src" vs.
|
|
|
|
"src.new").
|
|
|
|
|
2009-01-28 10:41:10 -04:00
|
|
|
- Added the ttk module. See issue #2983: Ttk support for Tkinter.
|
|
|
|
|
2009-01-25 22:09:03 -04:00
|
|
|
- Removed isSequenceType(), isMappingType, and isNumberType() from the
|
|
|
|
operator module; use the abstract base classes instead. Also removed
|
|
|
|
the repeat() function; use mul() instead.
|
|
|
|
|
2009-01-27 06:06:09 -04:00
|
|
|
- Issue 5021: doctest.testfile() did not create __name__ and
|
|
|
|
collections.namedtuple() relied on __name__ being defined.
|
|
|
|
|
|
|
|
- Backport importlib from Python 3.1. Only the import_module() function has
|
|
|
|
been backported to help facilitate transitions from 2.7 to 3.1.
|
|
|
|
|
2009-01-26 13:23:20 -04:00
|
|
|
- Issue #1885: distutils. When running sdist with --formats=tar,gztar
|
|
|
|
the tar file was overriden by the gztar one.
|
|
|
|
|
2009-01-25 14:27:45 -04:00
|
|
|
- Issue #4863: distutils.mwerkscompiler has been removed.
|
|
|
|
|
2009-01-27 00:20:44 -04:00
|
|
|
- Added a new itertools functions: combinations_with_replacement()
|
|
|
|
and compress().
|
2009-01-25 22:56:58 -04:00
|
|
|
|
2009-01-24 23:45:53 -04:00
|
|
|
- Fix and properly document the multiprocessing module's logging
|
|
|
|
support, expose the internal levels and provide proper usage
|
|
|
|
examples.
|
|
|
|
|
2009-01-24 17:46:33 -04:00
|
|
|
- Issue #1672332: fix unpickling of subnormal floats, which was
|
|
|
|
producing a ValueError on some platforms.
|
|
|
|
|
2009-01-24 12:19:45 -04:00
|
|
|
- Issue #3881: Help Tcl to load even when started through the
|
|
|
|
unreadable local symlink to "Program Files" on Vista.
|
|
|
|
|
2009-01-24 10:10:07 -04:00
|
|
|
- Issue #4710: Extract directories properly in the zipfile module;
|
|
|
|
allow adding directories to a zipfile.
|
|
|
|
|
2009-01-23 10:09:08 -04:00
|
|
|
- Issue #3807: _multiprocessing build fails when configure is passed
|
|
|
|
--without-threads argument. When this occurs, _multiprocessing will
|
|
|
|
be disabled, and not compiled.
|
|
|
|
|
2009-01-20 20:55:13 -04:00
|
|
|
- Issue #5008: When a file is opened in append mode with the new IO library,
|
|
|
|
do an explicit seek to the end of file (so that e.g. tell() returns the
|
|
|
|
file size rather than 0). This is consistent with the behaviour of the
|
|
|
|
traditional 2.x file object.
|
|
|
|
|
2009-01-20 20:19:28 -04:00
|
|
|
- Issue #5013: Fixed a bug in FileHandler which occurred when the delay
|
|
|
|
parameter was set.
|
|
|
|
|
2009-01-20 16:43:58 -04:00
|
|
|
- Issue #4842: Always append a trailing 'L' when pickling longs using
|
|
|
|
pickle protocol 0. When reading, the 'L' is optional.
|
|
|
|
|
2009-01-19 22:21:27 -04:00
|
|
|
- Add the importlib package.
|
|
|
|
|
2009-01-18 17:12:58 -04:00
|
|
|
- Issue #4301: Patch the logging module to add processName support, remove
|
|
|
|
_check_logger_class from multiprocessing.
|
|
|
|
|
2009-01-18 15:45:18 -04:00
|
|
|
- Issue #3325: Remove python2.x try: except: imports for old cPickle from
|
2009-01-20 20:19:28 -04:00
|
|
|
multiprocessing.
|
2009-01-18 15:44:02 -04:00
|
|
|
|
2009-01-17 00:15:01 -04:00
|
|
|
- Issue #4959: inspect.formatargspec now works for keyword only arguments
|
|
|
|
without defaults.
|
|
|
|
|
2009-01-19 12:23:53 -04:00
|
|
|
- Issue #3321: _multiprocessing.Connection() doesn't check handle; added checks
|
|
|
|
for *nix machines for negative handles and large int handles. Without this check
|
|
|
|
it is possible to segfault the interpreter.
|
|
|
|
|
2009-01-17 23:11:38 -04:00
|
|
|
- Issue #4449: AssertionError in mp_benchmarks.py, caused by an underlying issue
|
|
|
|
in sharedctypes.py.
|
|
|
|
|
|
|
|
- Issue #1225107: inspect.isclass() returned True for instances with a custom
|
|
|
|
__getattr__.
|
|
|
|
|
2009-01-12 00:50:11 -04:00
|
|
|
- Issue #3826 and #4791: The socket module now closes the underlying socket
|
|
|
|
appropriately when it is being used via socket.makefile() objects
|
|
|
|
rather than delaying the close by waiting for garbage collection to do it.
|
|
|
|
|
2009-01-13 22:20:07 -04:00
|
|
|
- Issue #1696199: Add collections.Counter() for rapid and convenient
|
|
|
|
counting.
|
|
|
|
|
2009-01-10 12:22:51 -04:00
|
|
|
- Issue #3860: GzipFile and BZ2File now support the context manager protocol.
|
|
|
|
|
2009-01-08 05:34:20 -04:00
|
|
|
- Issue #4867: Fixed a crash in ctypes when passing a string to a
|
|
|
|
function without defining argtypes.
|
|
|
|
|
2009-01-04 17:37:59 -04:00
|
|
|
- Issue #4272: Add an optional argument to the GzipFile constructor to override
|
|
|
|
the timestamp in the gzip stream. The default value remains the current time.
|
|
|
|
The information can be used by e.g. gunzip when decompressing. Patch by
|
|
|
|
Jacques Frechet.
|
|
|
|
|
2009-01-04 17:34:18 -04:00
|
|
|
- Restore Python 2.3 compatibility for decimal.py.
|
|
|
|
|
2009-01-03 18:00:39 -04:00
|
|
|
- Issue #3638: Remove functions from _tkinter module level that depend on
|
|
|
|
TkappObject to work with multiple threads.
|
|
|
|
|
2009-01-20 20:19:28 -04:00
|
|
|
- Issue #4718: Adapt the wsgiref package so that it actually works with
|
|
|
|
Python 3.x, in accordance with the `official amendments of the spec
|
2009-01-03 14:41:49 -04:00
|
|
|
<http://www.wsgi.org/wsgi/Amendments_1.0>`_.
|
|
|
|
|
2009-01-03 15:20:32 -04:00
|
|
|
- Issue #4796: Added Decimal.from_float() and Context.create_decimal_from_float()
|
|
|
|
to the decimal module.
|
|
|
|
|
2009-01-03 18:07:57 -04:00
|
|
|
- Fractions.from_float() no longer loses precision for integers too big to
|
|
|
|
cast as floats.
|
|
|
|
|
2009-01-02 19:23:21 -04:00
|
|
|
- Issue #4812: add missing underscore prefix to some internal-use-only
|
|
|
|
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.)
|
|
|
|
|
2009-01-03 18:07:57 -04:00
|
|
|
- Issue 4790: The nsmallest() and nlargest() functions in the heapq module
|
|
|
|
did unnecessary work in the common case where no key function was specified.
|
|
|
|
|
Merged revisions 68112,68115,68120,68133,68141-68142,68145-68146,68148-68149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228: Pack negative values the same way as 2.4
in struct's L format.
........
r68133 | antoine.pitrou | 2009-01-01 16:38:03 +0100 (Thu, 01 Jan 2009) | 1 line
fill in actual issue number in tests
........
r68141 | benjamin.peterson | 2009-01-01 17:43:12 +0100 (Thu, 01 Jan 2009) | 1 line
fix highlighting
........
r68142 | benjamin.peterson | 2009-01-01 18:29:49 +0100 (Thu, 01 Jan 2009) | 2 lines
welcome to 2009, Python!
........
r68145 | amaury.forgeotdarc | 2009-01-02 01:03:54 +0100 (Fri, 02 Jan 2009) | 5 lines
#4801 _collections module fails to build on cygwin.
_PyObject_GC_TRACK is the macro version of PyObject_GC_Track,
and according to documentation it should not be used for extension modules.
........
r68146 | ronald.oussoren | 2009-01-02 11:44:46 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
........
r68148 | ronald.oussoren | 2009-01-02 11:48:31 +0100 (Fri, 02 Jan 2009) | 2 lines
Forgot to add a NEWS item in my previous checkin
........
r68149 | ronald.oussoren | 2009-01-02 11:50:48 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4780
........
2009-01-03 18:33:39 -04:00
|
|
|
- Issue #4795: inspect.isgeneratorfunction() returns False instead of None when
|
|
|
|
the function is not a generator.
|
|
|
|
|
2009-01-20 20:19:28 -04:00
|
|
|
- Issue #4702: Throwing a DistutilsPlatformError instead of IOError in case
|
|
|
|
no MSVC compiler is found under Windows. Original patch by Philip Jenvey.
|
2008-12-30 19:09:20 -04:00
|
|
|
|
2009-01-20 20:19:28 -04:00
|
|
|
- Issue #4646: distutils was choking on empty options arg in the setup
|
2008-12-29 18:38:38 -04:00
|
|
|
function. Original patch by Thomas Heller.
|
|
|
|
|
2008-12-29 12:27:13 -04:00
|
|
|
- Issue #3767: Convert Tk object to string in tkColorChooser.
|
|
|
|
|
2008-12-29 12:03:04 -04:00
|
|
|
- Issue #3248: Allow placing ScrolledText in a PanedWindow.
|
|
|
|
|
2008-12-28 10:29:00 -04:00
|
|
|
- Issue #4444: Allow assertRaises() to be used as a context handler, so that
|
|
|
|
the code under test can be written inline if more practical.
|
|
|
|
|
2009-01-01 11:53:14 -04:00
|
|
|
- Issue #4739: Add pydoc help topics for symbols, so that e.g. help('@')
|
|
|
|
works as expected in the interactive environment.
|
|
|
|
|
2008-12-27 11:50:40 -04:00
|
|
|
- Issue #4756: zipfile.is_zipfile() now supports file-like objects. Patch by
|
|
|
|
Gabriel Genellina.
|
|
|
|
|
2008-12-14 12:36:46 -04:00
|
|
|
- Issue #4574: reading an UTF16-encoded text file crashes if \r on 64-char
|
|
|
|
boundary.
|
|
|
|
|
2008-12-14 07:50:48 -04:00
|
|
|
- Issue #4223: inspect.getsource() will now correctly display source code
|
|
|
|
for packages loaded via zipimport (or any other conformant PEP 302
|
|
|
|
loader). Original patch by Alexander Belopolsky.
|
|
|
|
|
|
|
|
- Issue #4201: pdb can now access and display source code loaded via
|
|
|
|
zipimport (or any other conformant PEP 302 loader). Original patch by
|
|
|
|
Alexander Belopolsky.
|
|
|
|
|
|
|
|
- Issue #4197: doctests in modules loaded via zipimport (or any other PEP
|
|
|
|
302 conformant loader) will now work correctly in most cases (they
|
|
|
|
are still subject to the constraints that exist for all code running
|
|
|
|
from inside a module loaded via a PEP 302 loader and attempting to
|
|
|
|
perform IO operations based on __file__). Original patch by
|
|
|
|
Alexander Belopolsky.
|
|
|
|
|
|
|
|
- Issues #4082 and #4512: Add runpy support to zipimport in a manner that
|
|
|
|
allows backporting to maintenance branches. Original patch by
|
|
|
|
Alexander Belopolsky.
|
|
|
|
|
2008-12-13 19:20:54 -04:00
|
|
|
- Issue #4163: textwrap module: allow word splitting on a hyphen preceded by
|
|
|
|
a non-ASCII letter.
|
|
|
|
|
2008-12-12 10:58:38 -04:00
|
|
|
- Issue #4616: TarFile.utime(): Restore directory times on Windows.
|
|
|
|
|
2008-12-11 21:25:05 -04:00
|
|
|
- Issue #4021: tokenize.detect_encoding() now raises a SyntaxError when the
|
|
|
|
codec cannot be found. This is for compatibility with the builtin behavior.
|
|
|
|
|
2008-12-11 00:20:07 -04:00
|
|
|
- Issue #4084: Fix max, min, max_mag and min_mag Decimal methods to
|
|
|
|
give correct results in the case where one argument is a quiet NaN
|
|
|
|
and the other is a finite number that requires rounding.
|
|
|
|
|
2008-12-06 13:25:02 -04:00
|
|
|
- Issue #4483: _dbm module now builds on systems with gdbm & gdbm_compat
|
|
|
|
libs.
|
|
|
|
|
2008-12-07 11:30:06 -04:00
|
|
|
- Added the subprocess.check_call_output() convenience function to get output
|
|
|
|
from a subprocess on success or raise an exception on error.
|
|
|
|
|
|
|
|
- Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to
|
|
|
|
support unusual filenames (such as those containing semi-colons) in
|
|
|
|
Content-Disposition headers.
|
|
|
|
|
|
|
|
- Issue #4384: Added logging integration with warnings module using
|
|
|
|
captureWarnings(). This change includes a NullHandler which does nothing;
|
|
|
|
it will be of use to library developers who want to avoid the "No handlers
|
|
|
|
could be found for logger XXX" message which can appear if the library user
|
|
|
|
doesn't configure logging.
|
|
|
|
|
|
|
|
- Issue #3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an
|
|
|
|
exception.
|
|
|
|
|
2008-12-07 11:15:22 -04:00
|
|
|
- Issue #4529: fix the parser module's validation of try-except-finally
|
|
|
|
statements.
|
|
|
|
|
|
|
|
- Issue #4458: getopt.gnu_getopt() now recognizes a single "-" as an argument,
|
|
|
|
not a malformed option.
|
|
|
|
|
|
|
|
- Added the subprocess.check_output() convenience function to get output
|
|
|
|
from a subprocess on success or raise an exception on error.
|
|
|
|
|
2008-12-04 21:40:43 -04:00
|
|
|
- Issue #4542: On Windows, binascii.crc32 still accepted str as binary input;
|
|
|
|
the corresponding tests now pass.
|
|
|
|
|
2008-12-04 21:02:21 -04:00
|
|
|
- Issue #4537: webbrowser.UnixBrowser would fail to open the browser because
|
|
|
|
it was calling the wrong open() function.
|
|
|
|
|
2008-12-04 15:24:50 -04:00
|
|
|
- Issue #1055234: cgi.parse_header(): Fixed parsing of header parameters to
|
|
|
|
support unusual filenames (such as those containing semi-colons) in
|
|
|
|
Content-Disposition headers.
|
|
|
|
|
2009-01-10 13:08:25 -04:00
|
|
|
- Issue #4861: ctypes.util.find_library(): Robustify. Fix library detection on
|
|
|
|
biarch systems. Try to rely on ldconfig only, without using objdump and gcc.
|
|
|
|
|
Merged revisions 69129-69131,69139-69140,69143,69154-69159,69169,69288-69289,69293,69297-69301,69348 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r69129 | benjamin.peterson | 2009-01-30 19:42:55 -0600 (Fri, 30 Jan 2009) | 1 line
check the errno in bad fd cases
........
r69130 | andrew.kuchling | 2009-01-30 20:50:09 -0600 (Fri, 30 Jan 2009) | 1 line
Add a section
........
r69131 | andrew.kuchling | 2009-01-30 21:26:02 -0600 (Fri, 30 Jan 2009) | 1 line
Text edits and markup fixes
........
r69139 | mark.dickinson | 2009-01-31 10:44:04 -0600 (Sat, 31 Jan 2009) | 2 lines
Add an extra test for long <-> float hash equivalence.
........
r69140 | benjamin.peterson | 2009-01-31 10:52:03 -0600 (Sat, 31 Jan 2009) | 1 line
PyErr_BadInternalCall() raises a SystemError, not TypeError #5112
........
r69143 | benjamin.peterson | 2009-01-31 15:00:10 -0600 (Sat, 31 Jan 2009) | 1 line
I believe the intention here was to avoid a global lookup
........
r69154 | benjamin.peterson | 2009-01-31 16:33:02 -0600 (Sat, 31 Jan 2009) | 1 line
fix indentation in comment
........
r69155 | david.goodger | 2009-01-31 16:53:46 -0600 (Sat, 31 Jan 2009) | 1 line
markup fix
........
r69156 | gregory.p.smith | 2009-01-31 16:57:30 -0600 (Sat, 31 Jan 2009) | 4 lines
- Issue #5104: The socket module now raises OverflowError when 16-bit port and
protocol numbers are supplied outside the allowed 0-65536 range on bind()
and getservbyport().
........
r69157 | benjamin.peterson | 2009-01-31 17:43:25 -0600 (Sat, 31 Jan 2009) | 1 line
add explanatory comment
........
r69158 | benjamin.peterson | 2009-01-31 17:54:38 -0600 (Sat, 31 Jan 2009) | 1 line
more flags which only work for function blocks
........
r69159 | gregory.p.smith | 2009-01-31 18:16:01 -0600 (Sat, 31 Jan 2009) | 2 lines
Update doc wording as suggested in issue4903.
........
r69169 | guilherme.polo | 2009-01-31 20:56:16 -0600 (Sat, 31 Jan 2009) | 3 lines
Restore Tkinter.Tk._loadtk so this test doesn't fail for problems
related to ttk.
........
r69288 | georg.brandl | 2009-02-05 04:30:57 -0600 (Thu, 05 Feb 2009) | 1 line
#5153: fix typo in example.
........
r69289 | georg.brandl | 2009-02-05 04:37:07 -0600 (Thu, 05 Feb 2009) | 1 line
#5144: document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path.
........
r69293 | georg.brandl | 2009-02-05 04:59:28 -0600 (Thu, 05 Feb 2009) | 1 line
#5059: fix example.
........
r69297 | georg.brandl | 2009-02-05 05:32:18 -0600 (Thu, 05 Feb 2009) | 1 line
#5015: document PythonHome API functions.
........
r69298 | georg.brandl | 2009-02-05 05:33:21 -0600 (Thu, 05 Feb 2009) | 1 line
#4827: fix callback example.
........
r69299 | georg.brandl | 2009-02-05 05:35:28 -0600 (Thu, 05 Feb 2009) | 1 line
#4820: use correct module for ctypes.util.
........
r69300 | georg.brandl | 2009-02-05 05:38:23 -0600 (Thu, 05 Feb 2009) | 1 line
#4563: disable alpha and roman lists, fixes wrong formatting of contributor list.
........
r69301 | georg.brandl | 2009-02-05 05:40:35 -0600 (Thu, 05 Feb 2009) | 1 line
#5031: fix Thread.daemon property docs.
........
r69348 | benjamin.peterson | 2009-02-05 19:47:31 -0600 (Thu, 05 Feb 2009) | 1 line
fix download link
........
2009-02-05 22:40:07 -04:00
|
|
|
- Issue #5104: The socket module now raises OverflowError when 16-bit port and
|
|
|
|
protocol numbers are supplied outside the allowed 0-65536 range on bind()
|
|
|
|
and getservbyport().
|
|
|
|
|
2008-12-27 16:39:28 -04:00
|
|
|
Tools/Demos
|
|
|
|
-----------
|
|
|
|
|
2009-02-07 13:13:31 -04:00
|
|
|
- Issue #4704: remove use of cmp() in pybench, bump its version number to 2.1,
|
|
|
|
and make it 2.6-compatible.
|
|
|
|
|
2009-01-28 12:06:51 -04:00
|
|
|
- Ttk demos added in Demo/tkinter/ttk/
|
|
|
|
|
2008-12-27 16:39:28 -04:00
|
|
|
- Issue #4677: add two list comprehension tests to pybench.
|
|
|
|
|
Merged revisions 68112,68115,68120,68133,68141-68142,68145-68146,68148-68149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228: Pack negative values the same way as 2.4
in struct's L format.
........
r68133 | antoine.pitrou | 2009-01-01 16:38:03 +0100 (Thu, 01 Jan 2009) | 1 line
fill in actual issue number in tests
........
r68141 | benjamin.peterson | 2009-01-01 17:43:12 +0100 (Thu, 01 Jan 2009) | 1 line
fix highlighting
........
r68142 | benjamin.peterson | 2009-01-01 18:29:49 +0100 (Thu, 01 Jan 2009) | 2 lines
welcome to 2009, Python!
........
r68145 | amaury.forgeotdarc | 2009-01-02 01:03:54 +0100 (Fri, 02 Jan 2009) | 5 lines
#4801 _collections module fails to build on cygwin.
_PyObject_GC_TRACK is the macro version of PyObject_GC_Track,
and according to documentation it should not be used for extension modules.
........
r68146 | ronald.oussoren | 2009-01-02 11:44:46 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
........
r68148 | ronald.oussoren | 2009-01-02 11:48:31 +0100 (Fri, 02 Jan 2009) | 2 lines
Forgot to add a NEWS item in my previous checkin
........
r68149 | ronald.oussoren | 2009-01-02 11:50:48 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4780
........
2009-01-03 18:33:39 -04:00
|
|
|
|
|
|
|
Build
|
|
|
|
-----
|
|
|
|
|
2009-02-02 11:32:22 -04:00
|
|
|
- Issue #4494: Fix build with Py_NO_ENABLE_SHARED on Windows.
|
|
|
|
|
2009-01-11 05:45:11 -04:00
|
|
|
- Issue #4895: Use _strdup on Windows CE.
|
|
|
|
|
Merged revisions 68112,68115,68120,68133,68141-68142,68145-68146,68148-68149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228: Pack negative values the same way as 2.4
in struct's L format.
........
r68133 | antoine.pitrou | 2009-01-01 16:38:03 +0100 (Thu, 01 Jan 2009) | 1 line
fill in actual issue number in tests
........
r68141 | benjamin.peterson | 2009-01-01 17:43:12 +0100 (Thu, 01 Jan 2009) | 1 line
fix highlighting
........
r68142 | benjamin.peterson | 2009-01-01 18:29:49 +0100 (Thu, 01 Jan 2009) | 2 lines
welcome to 2009, Python!
........
r68145 | amaury.forgeotdarc | 2009-01-02 01:03:54 +0100 (Fri, 02 Jan 2009) | 5 lines
#4801 _collections module fails to build on cygwin.
_PyObject_GC_TRACK is the macro version of PyObject_GC_Track,
and according to documentation it should not be used for extension modules.
........
r68146 | ronald.oussoren | 2009-01-02 11:44:46 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
........
r68148 | ronald.oussoren | 2009-01-02 11:48:31 +0100 (Fri, 02 Jan 2009) | 2 lines
Forgot to add a NEWS item in my previous checkin
........
r68149 | ronald.oussoren | 2009-01-02 11:50:48 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4780
........
2009-01-03 18:33:39 -04:00
|
|
|
- Issue #4472: "configure --enable-shared" now works on OSX
|
|
|
|
|
|
|
|
- Issues #4728 and #4060: WORDS_BIGEDIAN is now correct in Universal builds.
|
|
|
|
|
|
|
|
- Issue #4389: Add icon to the uninstall entry in "add-and-remove-programs".
|
|
|
|
|
|
|
|
- Issue #4289: Remove Cancel button from AdvancedDlg.
|
|
|
|
|
|
|
|
- Issue #1656675: Register a drop handler for .py* files on Windows.
|
|
|
|
|
|
|
|
- Issue #4120: Exclude manifest from extension modules in VS2008.
|
|
|
|
|
|
|
|
- Issue #4091: Install pythonxy.dll in system32 again.
|
|
|
|
|
|
|
|
- Issue #4018: Disable "for me" installations on Vista.
|
|
|
|
|
|
|
|
- Issue #3758: Add ``patchcheck`` build target to .PHONY.
|
|
|
|
|
|
|
|
- Issue #4204: Fixed module build errors on FreeBSD 4.
|
|
|
|
|
|
|
|
|
|
|
|
C-API
|
|
|
|
-----
|
|
|
|
|
|
|
|
- Issue #4720: The format for PyArg_ParseTupleAndKeywords can begin with '|'.
|
|
|
|
|
|
|
|
- Issue #3632: from the gdb debugger, the 'pyo' macro can now be called when
|
|
|
|
the GIL is released, or owned by another thread.
|
|
|
|
|
|
|
|
- Issue #4122: On Windows, fix a compilation error when using the
|
|
|
|
Py_UNICODE_ISSPACE macro in an extension module.
|
|
|
|
|
|
|
|
|
2008-12-11 17:56:00 -04:00
|
|
|
Extension Modules
|
|
|
|
-----------------
|
|
|
|
|
2009-01-15 11:36:10 -04:00
|
|
|
- Issue #4397: Fix occasional test_socket failure on OS X.
|
|
|
|
|
2009-01-11 05:30:50 -04:00
|
|
|
- Issue #4279: Fix build of parsermodule under Cygwin.
|
|
|
|
|
2009-01-08 17:17:16 -04:00
|
|
|
- Issue #4751: hashlib now releases the GIL when hashing large buffers
|
|
|
|
(with a hardwired threshold of 2048 bytes), allowing better parallelization
|
|
|
|
on multi-CPU systems. Contributed by Lukas Lueg (ebfe) and Victor Stinner.
|
|
|
|
|
2009-01-02 16:47:48 -04:00
|
|
|
- Issue #4051: Prevent conflict of UNICODE macros in cPickle.
|
|
|
|
|
2009-01-02 13:34:35 -04:00
|
|
|
- Issue #4738: Each zlib object now has a separate lock, allowing to compress
|
|
|
|
or decompress several streams at once on multi-CPU systems. Also, the GIL
|
|
|
|
is now released when computing the CRC of a large buffer. Patch by ebfe.
|
|
|
|
|
Merged revisions 68112,68115,68120,68133,68141-68142,68145-68146,68148-68149 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r68112 | benjamin.peterson | 2009-01-01 00:48:39 +0100 (Thu, 01 Jan 2009) | 1 line
#4795 inspect.isgeneratorfunction() should return False instead of None
........
r68115 | benjamin.peterson | 2009-01-01 05:04:41 +0100 (Thu, 01 Jan 2009) | 1 line
simplfy code
........
r68120 | georg.brandl | 2009-01-01 13:15:31 +0100 (Thu, 01 Jan 2009) | 4 lines
#4228: Pack negative values the same way as 2.4
in struct's L format.
........
r68133 | antoine.pitrou | 2009-01-01 16:38:03 +0100 (Thu, 01 Jan 2009) | 1 line
fill in actual issue number in tests
........
r68141 | benjamin.peterson | 2009-01-01 17:43:12 +0100 (Thu, 01 Jan 2009) | 1 line
fix highlighting
........
r68142 | benjamin.peterson | 2009-01-01 18:29:49 +0100 (Thu, 01 Jan 2009) | 2 lines
welcome to 2009, Python!
........
r68145 | amaury.forgeotdarc | 2009-01-02 01:03:54 +0100 (Fri, 02 Jan 2009) | 5 lines
#4801 _collections module fails to build on cygwin.
_PyObject_GC_TRACK is the macro version of PyObject_GC_Track,
and according to documentation it should not be used for extension modules.
........
r68146 | ronald.oussoren | 2009-01-02 11:44:46 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4472: "configure --enable-shared doesn't work on OSX"
........
r68148 | ronald.oussoren | 2009-01-02 11:48:31 +0100 (Fri, 02 Jan 2009) | 2 lines
Forgot to add a NEWS item in my previous checkin
........
r68149 | ronald.oussoren | 2009-01-02 11:50:48 +0100 (Fri, 02 Jan 2009) | 2 lines
Fix for issue4780
........
2009-01-03 18:33:39 -04:00
|
|
|
- Issue #4228: Pack negative values the same way as 2.4 in struct's L format.
|
|
|
|
|
2008-12-29 14:21:47 -04:00
|
|
|
- Issue #1040026: Fix os.times result on systems where HZ is incorrect.
|
|
|
|
|
2008-12-11 17:56:00 -04:00
|
|
|
- Issues #3167, #3682: Fix test_math failures for log, log10 on Solaris,
|
|
|
|
OpenBSD.
|
2008-11-21 19:08:09 -04:00
|
|
|
|
2008-12-18 13:08:32 -04:00
|
|
|
- Issue #4583: array.array would not always prohibit resizing when a buffer
|
|
|
|
has been exported, resulting in an interpreter crash when accessing the
|
|
|
|
buffer.
|
|
|
|
|
2008-11-30 06:36:49 -04:00
|
|
|
|
2009-01-28 16:40:48 -04:00
|
|
|
Tests
|
|
|
|
-----
|
|
|
|
|
|
|
|
- Issue #5083: New 'gui' resource for regrtest.
|
|
|
|
|
|
|
|
|
2008-11-25 15:19:17 -04:00
|
|
|
Docs
|
|
|
|
----
|
|
|
|
|
2008-05-25 06:43:03 -03:00
|
|
|
|
2002-09-20 11:16:59 -03:00
|
|
|
**(For information about older versions, consult the HISTORY file.)**
|