From: Guido van Rossum Date: Tue, 7 Mar 2006 18:54:08 +0000 (+0000) Subject: Add note about PEP 357. X-Git-Tag: v2.5a0~330 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9aa37ab5d276a308f79fcc5e3f80cf384e104d00;p=thirdparty%2FPython%2Fcpython.git Add note about PEP 357. --- diff --git a/Misc/NEWS b/Misc/NEWS index a56d6efeaac5..6657f3ad631f 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