> Almost all tp_traverse implementations can (and should) look exactly > alike: > > Py_VISIT(member1); > Py_VISIT(member2); > ... > Py_VISIT(member_n); > return 0; It does get a little more complicated for containers that loop over their contents and possibly have other PyObject * fields also. Still, I applied the macro to collections and itertools and found it to be straight-forward and easy to use. 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