<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span>forwarding to list...</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'Courier New', courier, monaco, monospace, sans-serif; background-color: transparent; font-style: normal;"><span>Please use reply-all when responding to the list.</span></div><div></div><div> </div><div>Alan Gauld<br>Author of the Learn To Program website<br><a rel="nofollow" target="_blank" href="http://www.alan-g.me.uk/">http://www.alan-g.me.uk/</a><a rel="nofollow" target="_blank" href="http://www.alan-g.me.uk/"><br></a></div><div style="color: rgb(0, 0, 255); font-size: 13px; background-color: transparent; font-style: normal; font-family: arial, helvetica, clean, sans-serif;"><a rel="nofollow" target="_blank"
href="http://www.flickr.com/photos/alangauldphotos/">http://www.flickr.com/photos/alangauldphotos</a></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt;"> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Gabriele Brambilla <gb.gabrielebrambilla@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> Alan Gauld <alan.gauld@btinternet.com> <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, 2 February 2014, 17:31<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Tutor] strange errors<br> </font> </div> <div class="y_msg_container"><br><div id="yiv668125262"><div dir="ltr">I use
windows 7 command prompt. doing<div><br></div><div>python <scriptname>.py</div><div><br></div><div>the errors are various...when I will get them again I will write them!</div><div><br></div><div>
thanks</div><div><br></div><div>Gabriele</div></div><div class="yiv668125262gmail_extra"><br><br><div class="yiv668125262gmail_quote">2014-02-02 Alan Gauld <span dir="ltr"><<a rel="nofollow" ymailto="mailto:alan.gauld@btinternet.com" target="_blank" href="mailto:alan.gauld@btinternet.com">alan.gauld@btinternet.com</a>></span>:<br>
<blockquote class="yiv668125262gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv668125262im">On 02/02/14 02:11, Gabriele Brambilla wrote:<br>
<br>
<blockquote class="yiv668125262gmail_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="yiv668125262im"><br>
<br>
<blockquote class="yiv668125262gmail_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="yiv668125262HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Alan G<br>
Author of the Learn to Program web site<br>
<a rel="nofollow" target="_blank" href="http://www.alan-g.me.uk/">http://www.alan-g.me.uk/</a><br>
<a rel="nofollow" target="_blank" href="http://www.flickr.com/photos/alangauldphotos">http://www.flickr.com/photos/<u></u>alangauldphotos</a><br>
<br>
______________________________<u></u>_________________<br>
Tutor maillist - <a rel="nofollow" ymailto="mailto:Tutor@python.org" target="_blank" href="mailto:Tutor@python.org">Tutor@python.org</a><br>
To unsubscribe or change subscription options:<br>
<a rel="nofollow" target="_blank" href="https://mail.python.org/mailman/listinfo/tutor">https://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</font></span></blockquote></div><br></div>
</div><br><br></div> </div> </div> </blockquote></div> </div></body></html>