]> granicus.if.org Git - python/commit
Use Py_VISIT in all tp_traverse methods, instead of traversing manually or
authorThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 21:47:09 +0000 (21:47 +0000)
committerThomas Wouters <thomas@python.org>
Sat, 15 Apr 2006 21:47:09 +0000 (21:47 +0000)
commitc6e55068cad6f2178981eec4f0a0a583b8bba21a
tree19a89bbe082dadc70c1413030e5a5b8dacac757c
parent447d095976fd532bf1882bf7afeb52473ff8673c
Use Py_VISIT in all tp_traverse methods, instead of traversing manually or
using a custom, nearly-identical macro. This probably changes how some of
these functions are compiled, which may result in fractionally slower (or
faster) execution. Considering the nature of traversal, visiting much of the
address space in unpredictable patterns, I'd argue the code readability and
maintainability is well worth it ;P
20 files changed:
Modules/_csv.c
Modules/arraymodule.c
Modules/cPickle.c
Modules/operator.c
Modules/pyexpat.c
Modules/zipimport.c
Objects/cellobject.c
Objects/classobject.c
Objects/descrobject.c
Objects/dictobject.c
Objects/enumobject.c
Objects/funcobject.c
Objects/iterobject.c
Objects/listobject.c
Objects/methodobject.c
Objects/moduleobject.c
Objects/tupleobject.c
Objects/typeobject.c
Objects/weakrefobject.c
Python/traceback.c