> 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/
+ [EMAIL PROTECTED]
++++++++++++++++++++++++++++++++++++++++++
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to