Message207823
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 |
|
Date |
User |
Action |
Args |
2014-01-10 02:21:42 | larry | set | recipients:
+ larry, vajrasky |
2014-01-10 02:21:42 | larry | set | messageid: <1389320502.54.0.0266224923331.issue20173@psf.upfronthosting.co.za> |
2014-01-10 02:21:42 | larry | link | issue20173 messages |
2014-01-10 02:21:42 | larry | create | |
|