[Tutor] problem editing modules and defs

Walter Prins wprins at gmail.com
Fri Feb 24 20:48:06 CET 2012


Hi,

On 24 February 2012 16:29, David Craig <dcdavemail at gmail.com> wrote:
> Hi,
> I am new to python and have made a couple of definitions. I imported them
> and they worked ok except for one which gave me the error "NameError: global
> name 'np' is not defined". I then edited my script for the def to include
> "import numpy as np" saved it and imported the def again. However, it still
> gives me the same error. I know I have to be doing something basic wrong but
> cant figure it out, anyone know what I am doing wrong. The def is below.
> thanks

I see others have responded to another post in more detail so please
feel free to ignore my brief response. :)

Walter


More information about the Tutor mailing list