]> granicus.if.org Git - python/commit
frame_traverse(): Use the standard Py_VISIT macro.
authorTim Peters <tim.peters@gmail.com>
Sat, 15 Apr 2006 03:22:46 +0000 (03:22 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 15 Apr 2006 03:22:46 +0000 (03:22 +0000)
commitde2acf6512caeacd1ad53e55aa0528f65d1201c7
tree0229a13daa59add9513d78f2ddf294152b53c6e5
parenta13131cf7f74eb89ed2cc63a9df5859c9ba66258
frame_traverse():  Use the standard Py_VISIT macro.

Py_VISIT:  cast the `op` argument to PyObject* when calling
`visit()`.  Else the caller has to pay too much attention to
this silly detail (e.g., frame_traverse needs to traverse
`struct _frame *` and `PyCodeObject *` pointers too).
Include/objimpl.h
Objects/frameobject.c