summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-27 23:16:44 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-11-27 23:16:44 (GMT)
commit28104c58d2457e2b74245a49e703d020cc2489df (patch)
tree32607b7c0a2319ecff83e9ade5613a37d65a18d7 /Misc
parent715ec1818de43836cffea50d5f4b5e53fc68a849 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index d0df601..6af34e1 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.