summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-03-07 18:54:08 (GMT)
committerGuido van Rossum <guido@python.org>2006-03-07 18:54:08 (GMT)
commit9aa37ab5d276a308f79fcc5e3f80cf384e104d00 (patch)
tree23cd6b8d50523724b5dc1b99777439eb247ae27e /Misc
parent38fff8c4e4276e4e57660a78f305e68bfa87874b (diff)
downloadcpython-9aa37ab5d276a308f79fcc5e3f80cf384e104d00.zip
cpython-9aa37ab5d276a308f79fcc5e3f80cf384e104d00.tar.gz
cpython-9aa37ab5d276a308f79fcc5e3f80cf384e104d00.tar.bz2
Add note about PEP 357.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a56d6ef..6657f3a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,11 @@ What's New in Python 2.5 alpha 1?
Core and builtins
-----------------
+- PEP 357, patch 1436368: add an __index__ method to int/long and a matching
+ nb_index slot to the PyNumberMethods struct. The slot is consulted instead
+ of requiring an int or long in slicing and a few other contexts, enabling
+ other objects (e.g. Numeric Python's integers) to be used as slice indices.
+
- Fixed various bugs reported by Coverity's Prevent tool.
- PEP 352, patch #1104669: Make exceptions new-style objects. Introduced the