summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-03-12 08:04:00 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-03-12 08:04:00 (GMT)
commitc1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3 (patch)
tree9bac712f5696672bf2817eeda0b515e9aa891653 /Misc
parent989ddc0709e98c1a5b3480e0843cf7896fd2909e (diff)
downloadcpython-c1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3.zip
cpython-c1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3.tar.gz
cpython-c1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3.tar.bz2
Use a new macro, PySequence_Fast_ITEMS to factor out code common to
three recent optimizations. Aside from reducing code volume, it increases readability.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 21114d4..9c5d80a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -412,6 +412,9 @@ Build
C API
-----
+- Added a new macro, PySequence_Fast_ITEMS, which retrieves a fast sequence's
+ underlying array of PyObject pointers. Useful for high speed looping.
+
- Created a new method flag, METH_COEXIST, which causes a method to be loaded
even if already defined by a slot wrapper. This allows a __contains__
method, for example, to co-exist with a defined sq_contains slot. This