[SciPy-user] How to solve name mangling ?

Matthew Brett matthew.brett at gmail.com
Fri Jun 8 06:19:16 EDT 2007


Hi,

> and now I forget just 1 N, and the program seems to work correctly ...

I think what we're all saying is:

If you start in matlab - for example - it seems like a good idea to do:

from numpy import *

That's how I started.

Gradually, writing code, you begin to realize that it is just much,
much better - for clarity, and for namespace safety, to do

import numpy as N

Of course, if you do that, if you forget an N., you get a syntax error.

And that is the right way to solve your 'what is an array' problem.
It's an N.array

Best,

Matthew



More information about the SciPy-User mailing list