[Cython] Backward compatibility for optimized isinstance
Robert Bradshaw
robertwb at math.washington.edu
Tue Sep 23 20:44:54 CEST 2008
On Sep 23, 2008, at 11:41 AM, Aaron DeVore wrote:
> I'm really happy with the automatic isinstance ->
> PyObject_TypeCheck change, but another question comes up. How do I
> make my code backward compatible? Just having isinstance be slower
> on older versions (pre 0.9.8.2) would work, but there would still
> be a performance hit.
>
> My first thought is to use Lisandro's hack (http://codespeak.net/
> pipermail/cython-dev/2008-September/002358.html) in the immediate
> future until Cython 0.9.8.2+ is more widely adopted. Does that
> sound like the best option?
Yes, I think it is.
- Robert
More information about the Cython-dev
mailing list