diff options
author | Raymond Hettinger <python@rcn.com> | 2004-03-12 08:04:00 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-03-12 08:04:00 (GMT) |
commit | c1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3 (patch) | |
tree | 9bac712f5696672bf2817eeda0b515e9aa891653 /Misc | |
parent | 989ddc0709e98c1a5b3480e0843cf7896fd2909e (diff) | |
download | cpython-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/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |