> Just a question: Is there a reason you like to keep numpy in a "cnp"
> prefix (I'm assuming you keep plain numpy in "np"). I'm asking because
> if there is a reason I'm interested in eliminating it.

Perhaps just me misunderstanding things.   I guess I was assuming that

import numpy as np

and

cimport numpy as cnp

pulled two different things, one being the numpy.pxd interface (or
something like that) and the other being the one I'm used to in
python.  But now that you mention it, it doesn't make any sense that
they are different so I'm not sure how I arrived at that conclusion.

> Yes, I agree that this can be bothersome. It crept in as an unintended
> side-effect of fixing something else close to the release (and we didn't
> want to shake up things too much). Fixing it is non-trivial and it does
> come a bit down on priority lists, but you can consider it a defect.

Okay, no problem.  It's still great to work with and use.  I am, of
course, excited to see these aspects of cython become more featureful.

> As for efficiency, example 1 (not allowed) and 2 are the same except for
> refcounting (which doesn't matter at all in a function using a buffer),
> so use 2.

I guess this implies that creating a buffer from a python object is
quite efficient.  Is that correct?

Thanks!!!

--Hoyt

+++++++++++++++++++++++++++++++++++
Hoyt Koepke
UBC Department of Computer Science
http://www.cs.ubc.ca/~hoytak/
[EMAIL PROTECTED]
+++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to