[pypy-issue] [issue1277] PyCode_GetNumFree() should accept PyCodeObject*

Lisandro Dalcin tracker at bugs.pypy.org
Thu Oct 4 03:47:24 CEST 2012

New submission from Lisandro Dalcin <dalcinl at gmail.com>:

In Python 2.x C/API, PyCode_GetNumFree() is a macro that should be called with a 
PyCodeObject* pointer, and returns the lenght of a tuple: 
http://hg.python.org/cpython/file/v2.7.3/Include/code.h#l68 . However, PyPy 
exposes this call as "int PyCode_GetNumFree(PyObject*)". The return type and 
parameter type should change to "Py_ssize_t PyCode_GetNumFree(PyCodeObject*)"

messages: 4818
nosy: dalcinl, pypy-issue
priority: bug
status: unread
title: PyCode_GetNumFree() should accept PyCodeObject*

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list