[issue20173] Derby #4: Convert 53 sites to Argument Clinic across 5 files
Larry Hastings
report at bugs.python.org
Fri Jan 10 03:21:42 CET 2014
Larry Hastings added the comment:
That METH_O is working perfectly. You seem to be confused by it.
The original code was kind of dumb. The function only takes two parameters: self, and a second "obj" parameter which can be any kind of object. CPython has special support for exactly this kind of function, which is METH_O. This will actually be slightly faster. In any case, that part of your conversion was correct. Don't sweat it.
http://docs.python.org/3.4/c-api/structures.html?highlight=meth_o#METH_O
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20173>
_______________________________________
More information about the Python-bugs-list
mailing list