I say old bean, did not get an answer and wasn&#39;t sure if it went through. Sorry me for asking help with python in a python mailing list!<br><br><div class="gmail_quote">On 3 May 2012 17:30, Mark Lawrence <span dir="ltr">&lt;<a href="mailto:breamoreboy@yahoo.co.uk" target="_blank">breamoreboy@yahoo.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 03/05/2012 16:52, Gergely Lőrincz wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Dear folks,<br>
<br>
I&#39;ve been struggling to set up python on snow leopard, mac os x. Stupidly I<br>
downloaded and installed python 3.2 and since then the &#39;python&#39; command in<br>
the terminal yields &#39;no command found&#39;. In addition when opening the<br>
terminal I get this error message on the top of the window:<br>
<a href="http://pastebin.com/QS3gpkjK" target="_blank">http://pastebin.com/QS3gpkjK</a><br>
<br>
For some reason the installation littered my Android SDK folder with<br>
main.py and other kind of python files. Don&#39;t ask me why, it&#39;s beyond me. I<br>
removed the offending files manually and deleted the python 3.2.2 folder<br>
form /Library/Frameworks/python.<u></u>framework/versions folder. After rebooting<br>
the terminal still complains about those files. I wonder how can I fix it?<br>
I would love to learn to use python! Your help would be appreciated!<br>
<br>
On 3 May 2012 15:22, Simon Yan&lt;<a href="mailto:simonyan@fedoraproject.org" target="_blank">simonyan@fedoraproject.org</a><u></u>&gt;  wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
On Thu, May 3, 2012 at 9:57 PM,&lt;<a href="mailto:spawgi@gmail.com" target="_blank">spawgi@gmail.com</a>&gt;  wrote:<br>
<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hello all,<br>
<br>
I have encountered the following scenario.<br>
Here is the code - on IDLE on Windows XP.<br>
<br></div>
*&gt;&gt;&gt;  while True:<div><div class="h5"><br>
     try:<br>
         number = raw_input(&quot;enter number - &quot;)<br>
         print number * number<br>
     except ValueError:<br>
         print &quot;invalid number&quot;<br>
     except:<br>
         print &quot;unspecified exception&quot;<br>
     else:<br>
         print &quot;other conditions&quot;<br>
<br>
<br>
enter number - 3<br>
unspecified exception<br>
*<br>
What I noticed is that no matter, what input I give, I cannot exit this<br>
loop. I have tried control-C, control-D etc. all the keys. So how can I<br>
exit from this loop?<br>
<br>
</div></div></blockquote><div><div class="h5">
<br>
If you simply want to stop after an exception was caught, you can insert<br>
&quot;break&quot; after each print line. Like below:<br>
  &gt;&gt;&gt;  while True:<br>
     try:<br>
         number = raw_input(&quot;enter number - &quot;)<br>
         print number * number<br>
     except ValueError:<br>
         print &quot;invalid number&quot;<br>
         break<br>
     except:<br>
         print &quot;unspecified exception&quot;<br>
         break<br>
     else:<br>
         print &quot;other conditions&quot;<br>
         break<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks and Regards,<br>
Sumod<br>
<br>
--<br>
<a href="http://spawgi.wordpress.com" target="_blank">http://spawgi.wordpress.com</a><br>
We can do it and do it better.<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="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
<br>
<br>
</blockquote>
<br>
<br>
--<br>
Regards,<br>
YeeYaa (Simon Yan)<br>
<br>
<a href="http://simonyan.fedorapeople.org/" target="_blank">http://simonyan.fedorapeople.<u></u>org/</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="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
<br>
<br>
</div></div></blockquote><div><div class="h5">
<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="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote>
<br>
I say old chap, it&#39;s simply not cricket to hijack a thread, particularly when you&#39;ve already asked your question some 4 hours and 38 minutes earlier.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Cheers.<br>
<br>
Mark Lawrence.</font></span><div class="HOEnZb"><div class="h5"><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="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/<u></u>mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Greg Lorincz<div><br></div><div><a href="http://www.greglorincz.com" target="_blank">www.greglorincz.com</a>  +447824817676<span></span><span></span></div>

<br>