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-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
|
|
|
|
-------
|
|
|
|
|
2008-12-30 19:09:20 -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-29 18:38:38 -04:00
|
|
|
- Issue #4646: distutils was choking on empty options arg in the setup
|
|
|
|
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.
|
|
|
|
|
2008-12-27 16:39:28 -04:00
|
|
|
Tools/Demos
|
|
|
|
-----------
|
|
|
|
|
|
|
|
- Issue #4677: add two list comprehension tests to pybench.
|
|
|
|
|
2008-12-11 17:56:00 -04:00
|
|
|
Extension Modules
|
|
|
|
-----------------
|
|
|
|
|
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
|
|
|
Build
|
|
|
|
-----
|
|
|
|
|
|
|
|
|
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.)**
|