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 <rep...@bugs.python.org>
<http://bugs.python.org/issue20173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to