<div dir="ltr">an example of errors that I obtain is: I build a matrix (SciPy array) using the same data.<div>I search for the maximum and the minimum with the given function and I insert the two values in a tuple that I print.</div>
<div>sometimes it print to me this: (0.0, 3.1926676650124463e-14)</div><div>sometimes it print to me: (nan, nan)</div><div><br></div><div>Thanks </div><div><br></div><div>Gabriele</div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">2014-02-02 Alan Gauld <span dir="ltr"><<a href="mailto:alan.gauld@btinternet.com" target="_blank">alan.gauld@btinternet.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 02/02/14 02:11, Gabriele Brambilla wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
sometimes when I try to run a program in Python I obtain some errors.<br>
</blockquote>
<br></div>
How are you running the program?<br>
<br>
doubly clicking in a file manager/explorer?<br>
Running from an OS command line?<br>
Importing from the Python >>> prompt?<br>
Or using some kind of IDE? (Which?)<br>
<br>
The answer to your question depends a lot on the way you<br>
run the code.<br>
<br>
A sample error and your OS and Python version will help too.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
How could I avoid this problem? I think that it is because it "remember"<br>
some variables that I have used...<br>
</blockquote>
<br></div>
Could be. If you import a module then change that module then<br>
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?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a href="http://www.alan-g.me.uk/" target="_blank">http://www.alan-g.me.uk/</a><br>
<a href="http://www.flickr.com/photos/alangauldphotos" target="_blank">http://www.flickr.com/photos/<u></u>alangauldphotos</a><br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org" target="_blank">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a href="https://mail.python.org/mailman/listinfo/tutor" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</font></span></blockquote></div><br></div>