diff options
author | Christian Heimes <christian@cheimes.de> | 2007-11-27 23:16:44 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2007-11-27 23:16:44 (GMT) |
commit | 28104c58d2457e2b74245a49e703d020cc2489df (patch) | |
tree | 32607b7c0a2319ecff83e9ade5613a37d65a18d7 /Misc | |
parent | 715ec1818de43836cffea50d5f4b5e53fc68a849 (diff) | |
download | cpython-28104c58d2457e2b74245a49e703d020cc2489df.zip cpython-28104c58d2457e2b74245a49e703d020cc2489df.tar.gz cpython-28104c58d2457e2b74245a49e703d020cc2489df.tar.bz2 |
Expose Py_Py3kWarningFlag as sys.py3kwarning as discussed in #1504
Also added a warning.warnpy3k() as convenient method for Python 3.x related deprecation warnings.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,8 @@ What's New in Python 2.6 alpha 1? Core and builtins ----------------- +- Expose the Py_Py3kWarningFlag as sys.py3kwarning. + - Issue #1445: Fix a SystemError when accessing the ``cell_contents`` attribute of an empty cell object. @@ -837,6 +839,8 @@ Library Extension Modules ----------------- +- Added warnpy3k function to the warnings module. + - Marshal.dumps() now expects exact type matches for int, long, float, complex, tuple, list, dict, set, and frozenset. Formerly, it would silently miscode subclasses of those types. Now, it raises a ValueError instead. |