[Tutor] strange errors
Gabriele Brambilla
gb.gabrielebrambilla at gmail.com
Mon Feb 3 19:48:08 CET 2014
an example of errors that I obtain is: I build a matrix (SciPy array) using
the same data.
I search for the maximum and the minimum with the given function and I
insert the two values in a tuple that I print.
sometimes it print to me this: (0.0, 3.1926676650124463e-14)
sometimes it print to me: (nan, nan)
Thanks
Gabriele
2014-02-02 Alan Gauld <alan.gauld at btinternet.com>:
> On 02/02/14 02:11, Gabriele Brambilla wrote:
>
> sometimes when I try to run a program in Python I obtain some errors.
>>
>
> How are you running the program?
>
> doubly clicking in a file manager/explorer?
> Running from an OS command line?
> Importing from the Python >>> prompt?
> Or using some kind of IDE? (Which?)
>
> The answer to your question depends a lot on the way you
> run the code.
>
> A sample error and your OS and Python version will help too.
>
>
> How could I avoid this problem? I think that it is because it "remember"
>> some variables that I have used...
>>
>
> Could be. If you import a module then change that module then
> reimporting alone is not enough. But if you run the code from the OS that
> shouldn't be an issue. So how do you run the code?
>
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.flickr.com/photos/alangauldphotos
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140203/e9912753/attachment.html>
More information about the Tutor
mailing list