summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-04-02 21:49:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-04-02 21:49:44 (GMT)
commitad9d48d865706a76e86b8929be5f981971206657 (patch)
tree33152d98b8e431fccf0edc41dd363223213c2890 /Misc
parent84bea688c2a5fb1f4e816fccbd93a8a4037816ca (diff)
downloadcpython-ad9d48d865706a76e86b8929be5f981971206657.zip
cpython-ad9d48d865706a76e86b8929be5f981971206657.tar.gz
cpython-ad9d48d865706a76e86b8929be5f981971206657.tar.bz2
Merged revisions 62090-62091,62096,62100,62102,62110-62114 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r62090 | brett.cannon | 2008-04-01 07:37:43 -0500 (Tue, 01 Apr 2008) | 3 lines Generalize test.test_support.test_stdout() with a base context manager so that it is easy to capture stderr if desired. ........ r62091 | brett.cannon | 2008-04-01 07:46:02 -0500 (Tue, 01 Apr 2008) | 3 lines Add ``if __name__ == '__main__'`` to some test files where it didn't take a lot of effort to do so. ........ r62096 | amaury.forgeotdarc | 2008-04-01 17:52:48 -0500 (Tue, 01 Apr 2008) | 4 lines Newly enabled test appears to leak: it registers the same codec on each iteration. Do it only once at load time. ........ r62100 | amaury.forgeotdarc | 2008-04-01 19:55:04 -0500 (Tue, 01 Apr 2008) | 4 lines A DocTestSuite cannot run multiple times: it clears its globals dictionary after the first run. Rebuild the DocTestSuite on each iteration. ........ r62102 | jeffrey.yasskin | 2008-04-01 23:07:44 -0500 (Tue, 01 Apr 2008) | 3 lines Try to make test_signal less flaky. I still see some flakiness in test_itimer_prof. ........ r62110 | vinay.sajip | 2008-04-02 16:09:27 -0500 (Wed, 02 Apr 2008) | 1 line Fix: #2315, #2316, #2317: TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period. ........ r62111 | vinay.sajip | 2008-04-02 16:10:23 -0500 (Wed, 02 Apr 2008) | 1 line Added updates with respect to recent changes to TimedRotatingFileHandler. ........ r62112 | vinay.sajip | 2008-04-02 16:17:25 -0500 (Wed, 02 Apr 2008) | 1 line Added updates with respect to recent changes to TimedRotatingFileHandler. ........ r62113 | amaury.forgeotdarc | 2008-04-02 16:18:46 -0500 (Wed, 02 Apr 2008) | 2 lines Remove debug prints; the buildbot now passes the tests ........ r62114 | benjamin.peterson | 2008-04-02 16:20:35 -0500 (Wed, 02 Apr 2008) | 2 lines Suggested proposed changes to Python be considered on some mailing lists first ........
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS199
1 files changed, 197 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 8aa1f30..aa82367 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -29,6 +29,19 @@ Library
as a build_py replacement to automatically run 2to3 on modules
that are going to be installed.
+- Issue #2315: logging.handlers: TimedRotatingFileHandler now accounts for
+ daylight savings time in calculating the next rollover.
+
+- Issue #2316: logging.handlers: TimedRotatingFileHandler now calculates
+ rollovers correctly even when nothing is logged for a while.
+
+- Issue #2317: logging.handlers: TimedRotatingFileHandler now uses improved
+ logic for removing old files.
+
+- Issue #2495: tokenize.untokenize now inserts a space between two consecutive
+ string literals; previously, ["" ""] was rendered as [""""], which is
+ incorrect python code.
+
- A new pickle protocol (protocol 3) is added with explicit support
for bytes. This is the default protocol. It intentionally cannot
be unpickled by Python 2.x.
@@ -57,6 +70,115 @@ Library
What's New in Python 3.0a3?
===========================
+- Issue #1681432: Add triangular distribution to the random module
+
+- Issue #2136: urllib2's auth handler now allows single-quoted realms in the
+ WWW-Authenticate header.
+
+- Issue #2434: Enhanced platform.win32_ver() to also work on Python
+ installation which do not have the win32all package installed.
+
+- Added support to platform.uname() to also report the machine
+ and processor information on Windows XP and later. As a result,
+ platform.machine() and platform.processor() will report this
+ information as well.
+
+- The library implementing the 2to3 conversion, lib2to3, was added
+ to the standard distribution.
+
+- Issue #1747858: Fix chown to work with large uid's and gid's on 64-bit
+ platforms.
+
+- Issue #1202: zlib.crc32 and zlib.adler32 no longer return different values
+ on 32-bit vs. 64-bit python interpreters. Both were correct, but they now
+ both return a signed integer object for consistency.
+
+- Issue #1158: add %f format (fractions of a second represented as
+ microseconds) to datetime objects. Understood by both strptime and
+ strftime.
+
+- Issue #705836: struct.pack(">f", x) now raises OverflowError on all
+ platforms when x is too large to fit into an IEEE 754 float; previously
+ it only raised OverflowError on non IEEE 754 platforms.
+
+- Issue #1106316: pdb.post_mortem()'s parameter, "traceback", is now
+ optional: it defaults to the traceback of the exception that is currently
+ being handled (is mandatory to be in the middle of an exception, otherwise
+ it raises ValueError).
+
+- Issue #1193577: A .shutdown() method has been added to SocketServers
+ which terminates the .serve_forever() loop.
+
+- Bug #2220: handle rlcompleter attribute match failure more gracefully.
+
+- Issue #2225: py_compile, when executed as a script, now returns a non-
+ zero status code if not all files could be compiled successfully.
+
+- Bug #1725737: In distutil's sdist, exclude RCS, CVS etc. also in the
+ root directory, and also exclude .hg, .git, .bzr, and _darcs.
+
+- Issue #1872: The struct module typecode for _Bool has been changed
+ from 't' to '?'.
+
+- The bundled libffi copy is now in sync with the recently released
+ libffi3.0.4 version, apart from some small changes to
+ Modules/_ctypes/libffi/configure.ac.
+ On OS X, preconfigured libffi files are used.
+ On all linux systems the --with-system-ffi configure option defaults
+ to "yes".
+
+- Issue 1577: shutil.move() now calls os.rename() if the destination is a
+ directory instead of copying-then-remove-source.
+
+Tests
+-----
+
+- test_nis no longer fails when test.test_support.verbose is true and NIS is
+ not set up on the testing machine.
+
+- Output comparison tests are no longer supported.
+
+- Rewrite test_errno to use unittest and no longer be a no-op.
+
+- GHOP 234: Convert test_extcall to doctest.
+
+- GHOP 290: Convert test_dbm and test_dummy_threading to unittest.
+
+- GHOP 293: Convert test_strftime, test_getargs, and test_pep247 to unittest.
+
+- Issue #2055: Convert test_fcntl to unittest.
+
+- Issue 1960: Convert test_gdbm to unittest.
+
+- GHOP 294: Convert test_contains, test_crypt, and test_select to unittest.
+
+- GHOP 238: Convert test_tokenize to use doctest.
+
+- GHOP 237: Rewrite test_thread using unittest.
+
+- Patch #2232: os.tmpfile might fail on Windows if the user has no
+ permission to create files in the root directory.
+
+Build
+-----
+
+- A new script 2to3 is now installed, to run the 2.x to 3.x converter.
+
+- Python/memmove.c and Python/strerror.c have been removed; both functions are
+ in the C89 standard library.
+
+- Patch #2284: Add -x64 option to rt.bat.
+
+C API
+-----
+
+- Patch #2477: Added PyParser_ParseFileFlagsEx() and
+ PyParser_ParseStringFlagsFilenameEx()
+
+What's New in Python 2.6 alpha 1?
+=================================
+
+>>>>>>> .merge-right.r62114
*Release date: 29-Feb-2008*
Core and Builtins
@@ -64,8 +186,40 @@ Core and Builtins
- Issue #2282: io.TextIOWrapper was not overriding seekable() from io.IOBase.
-- Issue #2115: Important speedup in setting __slot__ attributes. Also
- prevent a possible crash: an Abstract Base Class would try to access a slot
+- Issue #2067: file.__exit__() now calls subclasses' close() method.
+
+- Patch #1759: Backport of PEP 3129 class decorators.
+
+- Issue #1881: An internal parser limit has been increased. Also see
+ issue 215555 for a discussion.
+
+- Added the future_builtins module, which contains hex() and oct().
+ These are the PEP 3127 version of these functions, designed to be
+ compatible with the hex() and oct() builtins from Python 3.0. They
+ differ slightly in their output formats from the existing, unchanged
+ Python 2.6 builtins. The expected usage of the future_builtins
+ module is:
+ from future_builtins import hex, oct
+
+- Issue #1600: Modifed PyOS_ascii_formatd to use at most 2 digit
+ exponents for exponents with absolute value < 100. Follows C99
+ standard. This is a change on Windows, which would use 3 digits.
+ Also, added 'n' to the formats that PyOS_ascii_formatd understands,
+ so that any alterations it does to the resulting string will be
+ available in stringlib/formatter.h (for float.__format__).
+
+- Implemented PEP 3101, Advanced String Formatting. This adds a new
+ builtin format(); a format() method for str and unicode; a
+ __format__() method to object, str, unicode, int, long, float, and
+ datetime; the class string.Formatter; and the C API
+ PyObject_Format().
+
+- Fixed several potential crashes, all caused by specially crafted __del__
+ methods exploiting objects in temporarily inconsistent state.
+
+>>>>>>> .merge-right.r62114
+- Issue #2115: Important speedup in setting __slot__ attributes. Also
+ prevent a possible crash: an Abstract Base Class would try to access a slot
on a registered virtual subclass.
- Fixed repr() and str() of complex numbers with infinity or nan as real or
@@ -106,6 +260,11 @@ Core and Builtins
- Issue #1969: split and rsplit in bytearray are inconsistent
+- Issue #1920: "while 0" statements were completely removed by the compiler,
+ even in the presence of an "else" clause, which is supposed to be run when
+ the condition is false. Now the compiler correctly emits bytecode for the
+ "else" suite.
+
- map() and no longer accepts None for the first argument.
Use zip() instead.
@@ -496,9 +655,15 @@ C API
- Removed these C APIs:
PyNumber_Coerce(), PyNumber_CoerceEx(), PyMember_Get, PyMember_Set
+- ``PySet_Add()`` can now modify a newly created frozenset. Similarly to
+ ``PyTuple_SetItem``, it can be used to populate a brand new frozenset; but
+ it does not steal a reference to the added item.
+
- Removed these C slots/fields:
nb_divide, nb_inplace_divide
+- Added ``PySet_Check()`` and ``PyFrozenSet_Check()`` to the set API.
+
- Removed these macros:
staticforward, statichere, PyArg_GetInt, PyArg_NoArgs, _PyObject_Del
@@ -534,4 +699,34 @@ Platforms
Tools/Demos
-----------
+- Bug #1542693: remove semi-colon at end of PyImport_ImportModuleEx macro
+ so it can be used as an expression.
+
+
+Windows
+-------
+
+- Patch #1706: Drop support for Win9x, WinME and NT4. Python now requires
+ Windows 2000 or greater. The _WINVER and NTDDI_VERSION macros are set to
+ Win2k for x86/32bit builds and WinXP for AMD64 builds.
+
+- Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
+ and _CRT_NONSTDC_NO_DEPRECATE.
+
+- Bug #1216: Restore support for Visual Studio 2002.
+
+
+Mac
+---
+
+- cfmfile now raises a DeprecationWarning.
+
+- buildtools now raises a DeprecationWarning.
+
+- Removed the macfs module. It had been deprecated since Python 2.5. This
+ lead to the deprecation of macostools.touched() as it relied solely on macfs
+ and was a no-op under OS X.
+
+----
+
**(For information about older versions, consult the HISTORY file.)**