[Cython] help tracking down TypeError
Hoyt Koepke
hoytak at cs.ubc.ca
Wed Nov 12 02:38:01 CET 2008
> Are you sure? I changed the line to this:
>
> from numpy import random as rn
>
> And it worked with Cython 0.10. Possibly the code that handles "import
> <foo>.<bar> as <baz>" is incorrect. It's a tricky bit of syntax.
You're right; this does work. I think in trying a bunch of
combinations to figure it out, I must have missed recompiling
something and so missed this. Sorry for the noise!
> Stylistically, though, I would suggest just doing "from numpy import random".
Okay, good tip. Style is important :-)
--Hoyt
++++++++++++++++++++++++++++++++++++++++++
+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoytak at gmail.com
++++++++++++++++++++++++++++++++++++++++++
More information about the Cython-dev
mailing list