Re: [Cython] inspect.isbuiltin(cyfunction) and inheritance from PyCFunction

2014-02-02 Thread Stefan Behnel
Stefan Behnel, 01.02.2014 17:04: > Stefan Behnel, 31.01.2014 21:01: >> Yury Selivanov just committed a revised version of a patch I wrote for >> CPython's inspect module last year. It now accepts Cython's function type >> as Python function, based on the function-like attributes that it exports. >>

Re: [Cython] inspect.isbuiltin(cyfunction) and inheritance from PyCFunction

2014-02-02 Thread Stefan Behnel
Stefan Behnel, 02.02.2014 11:07: > Stefan Behnel, 01.02.2014 17:04: >> Stefan Behnel, 31.01.2014 21:01: >>> Yury Selivanov just committed a revised version of a patch I wrote for >>> CPython's inspect module last year. It now accepts Cython's function type >>> as Python function, based on the funct

Re: [Cython] Bug: _PyType_Lookup shortcut in Cython 0.20 breaks lookup of __exit__ in Python 2.6

2014-02-02 Thread Stefan Behnel
[forwarding to cython-devel] Wouter Bolsterlee, 02.02.2014 16:40: > Cython 0.20 introduced __Pyx_PyObject_LookupSpecial as a shortcut to > lookup special methods. The commit that introduced this change is > 8f6412275c4c2d1dcf43ad40306f858b114104ed and can be seen here: > > https://github.com/cyth

Re: [Cython] Bug: _PyType_Lookup shortcut in Cython 0.20 breaks lookup of __exit__ in Python 2.6

2014-02-02 Thread Wouter Bolsterlee
Hi, Thanks for the quick follow-up. See inline comments below. Stefan Behnel schreef op zo 02-02-2014 om 18:13 [+0100]: > Ok, I don't know what the exact difference is, but I do believe you > that > Py2.6 doesn't play as nicely here as Py3. In any case, the CPython > code > that I adapted it from

Re: [Cython] Bug: _PyType_Lookup shortcut in Cython 0.20 breaks lookup of __exit__ in Python 2.6

2014-02-02 Thread Stefan Behnel
Wouter Bolsterlee, 02.02.2014 18:43: > https://gist.github.com/wbolster/8771899 > > Hopefully you'll be able to construct a test from this. Thanks! https://github.com/cython/cython/commit/e40d032f4a1e851c9bc897c36176483b6c92cce8 Stefan ___ cython-d