> Note that the two HasAttrString calls can be quite a bit more > expensive than the PyRange_Check and PyList_Check calls... Right! So we need to keep those: if (PyRange_Check(seq) || PyList_Check(seq) || PyObject_HasAttrString(seq, "__reversed__") && PyObject_HasAttrString(seq, "__len__")) return PyObject_CallMethod(seq, "__reversed__", NULL); Raymond
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4