[Cython] Difference between Cython / Python isinstance() vs. NumPy scalars, whose bug is this?

2013-07-15 Thread Yury V. Zaytsev
Hi, I've debugged my problem with passing NumPy scalars via Cython into C++ down to the fact that inside Cython code `isinstance(x, float)` returns True on floating point NumPy scalars, but `isinstance(x, (int, long))` returns False on integer NumPy scalars. However, when I run the same code from

Re: [Cython] Difference between Cython / Python isinstance() vs. NumPy scalars, Python bug?

2013-07-15 Thread Yury V. Zaytsev
On Mon, 2013-07-15 at 17:03 +0200, Yury V. Zaytsev wrote: > However, when I run the same code from within Python, both checks work > just fine. So is this a genuine bug in Cython, or, rather, NumPy is > doing some black magic behind the scenes, that prevents > Cython-compiled modules from working c

Re: [Cython] getting rid of redundancy in the docs

2013-07-15 Thread Robert Bradshaw
Great idea re wiki, especially as github makes doc edits and pull requests nearly as easy. I agree the docs need cleaning, I'll see what I can do once I get to real internet. On Jul 14, 2013 10:07 AM, "Anthony Scopatz" wrote: > Hello Stefan, > > I think that this is a good idea and I just thought