[Tutor] How I overcame my problems executing python programs.

cyclicflux at yahoo.com cyclicflux at yahoo.com
Fri Mar 16 08:26:59 CET 2012


I've just received this e-mail on my android and believe that the above  
advice is good(as always), this list is great for beginners as there are a  
never-ending amt. Of talented/knowledgable ppl. Available. Additionally, I  
love Eclipse's Pydev(Comes incl. 'd) already in  
AptanaStudio(Eclipse-derivative for web-development and best of all python.  
Its very new, and although there is a commercial version, they provide full  
features to the free Aptana version. If you go this route, there is one less  
step, and me starting python a year or so ago, it was a life-saver. The  
other life-saver was the pydoc feature that comes with the std. Python  
Windows installation. Its amazing and if my memory serves correctly in  
Windows IDLE launched from the help menu.  Thats great for quickly  
referencing things. But good luck!! 

Sent from my Verizon Wireless Phone

-----Original message-----
From: tutor-request at python.org
To: tutor at python.org
Sent: Fri, Mar 16, 2012 01:12:28 GMT+00:00
Subject: Tutor Digest, Vol 97, Issue 41

Send Tutor mailing list submissions to
	tutor at python.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.python.org/mailman/listinfo/tutor
or, via email, send a message with subject or body 'help' to
	tutor-request at python.org

You can reach the person managing the list at
	tutor-owner at python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Tutor digest..."


Today's Topics:

   1. how I overcame the problem "I cannot run Python programs"
      (Tamar Osher)
   2. Re: how I overcame the problem "I cannot run Python	programs"
      (eire1130 at gmail.com)
   3. more about how I overcame not being able to run my programs
      (Tamar Osher)
   4. Re: more about how I overcame not being able to run my
      programs (Alan Gauld)
   5. Re: how I overcame the problem "I cannot run Python	programs"
      (Mark Lawrence)
   6. Re: more about how I overcame not being able to run	my
      programs (Steven D'Aprano)
   7. Re: how I overcame the problem "I cannot run Python	programs"
      (Alan Gauld)


----------------------------------------------------------------------

Message: 1
Date: Thu, 15 Mar 2012 17:12:37 -0500
From: Tamar Osher <emeraldoffice at hotmail.com>
To: "Tutor at Python.org" <tutor at python.org>
Subject: [Tutor] how I overcame the problem "I cannot run Python
	programs"
Message-ID: <BAY167-W76BD3EC4CBBB24E1FBF352B95E0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


I realized that my computer was running the programs.  The black box was  
flashing off and disappearing immediately, so that I never saw the programs.  
 Also, I am using Notepad++, in addition to IDLE.  I am now able to see my  
programs and provide user input, when I use Notepad++.
Also, I still have not fully overcome, I am slowly on my way to success.
I am working vigorously on Python, but only 10% of my time is learning  
Python.  The rest of my time is learning everything related to Python, to  
get my programs to work.
I greatly appreciate everyone's help!  I cannot thank each of you enough.   
Thanks for being there when I need someone!  Have a wonderful day!

 





 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL:  
<http://mail.python.org/pipermail/tutor/attachments/20120315/bd5217e1/attachm 
ent-0001.html>

------------------------------

Message: 2
Date: Thu, 15 Mar 2012 22:30:47 +0000
From: eire1130 at gmail.com
To: "Tamar Osher" <emeraldoffice at hotmail.com>,
	tutor-bounces+eire1130=gmail.com at python.org,	"Tutor at Python.org"
	<tutor at python.org>
Subject: Re: [Tutor] how I overcame the problem "I cannot run Python
	programs"
Message-ID:
	 
<1795078761-1331850648-cardhu_decombobulator_blackberry.rim.net-1415149165- at b 
11.c28.bise6.blackberry>
	
Content-Type: text/plain


That's the nature of things I'm afraid. 

I do about half of my development on windows. My recomendation, download  
eclipse and install pydev. IDE choice is always a touchy subject but for  
windows, this should be your choice.

I have notepad++ as well. Its great. But eclipse is better, especially for  
learning. I can't describe how much it helped me.




Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: Tamar Osher <emeraldoffice at hotmail.com>
Sender: tutor-bounces+eire1130=gmail.com at python.org
Date: Thu, 15 Mar 2012 17:12:37 
To: Tutor at Python.org<tutor at python.org>
Subject: [Tutor] how I overcame the problem "I cannot run Python programs"

_______________________________________________
Tutor maillist  -  Tutor at python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor




------------------------------

Message: 3
Date: Thu, 15 Mar 2012 17:39:53 -0500
From: Tamar Osher <emeraldoffice at hotmail.com>
To: "Tutor at Python.org" <tutor at python.org>
Subject: [Tutor] more about how I overcame not being able to run my
	programs
Message-ID: <BAY167-W110C4E821892DAA16B73D0BB95E0 at phx.gbl>
Content-Type: text/plain; charset="iso-8859-1"


I am very appreciative for the many valuable individuals who graciously take  
their precious time to help others in need.  Special thanks to:
Brian van den Broek,Bob Gailer,and Hugo Arts.
I followed all the instructions of Hugo, Bob, and Brian.  This is  
specifically what I am now doing so that I can see the programs that I run,  
and also be able to provide user input:
try:    import os    # my programfinally:    input ('\n\t\t\tPress the enter  
key to continue.')    os.system ('pause') 



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL:  
<http://mail.python.org/pipermail/tutor/attachments/20120315/7c47caf2/attachm 
ent-0001.html>

------------------------------

Message: 4
Date: Thu, 15 Mar 2012 23:51:47 +0000
From: Alan Gauld <alan.gauld at btinternet.com>
To: tutor at python.org
Subject: Re: [Tutor] more about how I overcame not being able to run
	my	programs
Message-ID: <jjtvak$9oi$1 at dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 15/03/12 22:39, Tamar Osher wrote:

> try:
> import os
> # my program
> finally:
> input ('\n\t\t\tPress the enter key to continue.')
> os.system ('pause')

It's more conventional to put the import at the very top, before the 
try: line.

But otherwise what you have should be fine. There are other ways of 
doing it and eventually you may write programs that don't require the 
press enter... line and you can then miss out all of the code above. But 
for learning that's fine.

Or just run your programs inside IDLE or, as someone else suggested, 
Eclipse and PyDev (although personally that seems like overkill!)

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



------------------------------

Message: 5
Date: Fri, 16 Mar 2012 00:29:37 +0000
From: Mark Lawrence <breamoreboy at yahoo.co.uk>
To: tutor at python.org
Subject: Re: [Tutor] how I overcame the problem "I cannot run Python
	programs"
Message-ID: <jju1hq$nu7$1 at dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 15/03/2012 22:30, eire1130 at gmail.com wrote:
>
> That's the nature of things I'm afraid.
>
> I do about half of my development on windows. My recomendation, download  
eclipse and install pydev. IDE choice is always a touchy subject but for  
windows, this should be your choice.
>
> I have notepad++ as well. Its great. But eclipse is better, especially for  
learning. I can't describe how much it helped me.
>

I believe that eclipse is crap.  I tried it 10 years ago and gave up 
because it was so slow.  I tried it a couple of months ago for two weeks 
and again gave up for the same reasons.  Why not stick with pythonwin, 
it's perfectly adequate for my needs?

-- 
Cheers.

Mark Lawrence.



------------------------------

Message: 6
Date: Fri, 16 Mar 2012 11:35:35 +1100
From: Steven D'Aprano <steve at pearwood.info>
To: tutor at python.org
Subject: Re: [Tutor] more about how I overcame not being able to run
	my	programs
Message-ID: <4F628AD7.6090303 at pearwood.info>
Content-Type: text/plain; charset=us-ascii; format=flowed

Alan Gauld wrote:
> On 15/03/12 22:39, Tamar Osher wrote:
> 
>> try:
>> import os
>> # my program
>> finally:
>> input ('\n\t\t\tPress the enter key to continue.')
>> os.system ('pause')
> 
> It's more conventional to put the import at the very top, before the 
> try: line.

True, but in this case, if there is an import error, the message will flash  
by 
without being read. Wrapping the *entire* program, imports and all, ensures 
that the program will pause regardless of what happens.


-- 
Steven



------------------------------

Message: 7
Date: Fri, 16 Mar 2012 01:10:39 +0000
From: Alan Gauld <alan.gauld at btinternet.com>
To: tutor at python.org
Subject: Re: [Tutor] how I overcame the problem "I cannot run Python
	programs"
Message-ID: <jju3uf$8hr$1 at dough.gmane.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 16/03/12 00:29, Mark Lawrence wrote:
>> I have notepad++ as well. Its great. But eclipse is better, especially
>> for learning. I can't describe how much it helped me.
>
> I believe that eclipse is crap.

No, it's not crap, it's one of the most powerful and extensible 
development tools available and used by thousands (millions?) of 
professional programmers worldwide. But...

 > I tried it 10 years ago and gave up because it was so slow.

It's written in Java and 10 years ago few PCs had the horsepower to run 
Java well, and the Java compilers/VM were less efficient too.

> I tried it a couple of months ago for two weeks and again gave up
 > for the same reasons.

Unless you are still using the same 10 year old PC it shouldn't have 
been that bad! I certainly don't find it any slower than most large apps 
these days.

> Why not stick with pythonwin, it's perfectly adequate for my needs?

For a beginner to python I tend to agree with you. Not because Eclipse 
is slow but because it's way over powered for the simple programs 
beginners write. If you want to develop a large application with 
dozens/hundreds of files and packages on Windows then Eclipse (or 
Netbeans etc) is a useful tool to have. And if you need to develop code 
in many different languages again, Eclipse will provide consistency. And 
if you need to build design models in UML you get a choice of top-end 
tools. But, for single-file programs Pythonwin and even IDLE are 
perfectly adequate.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



------------------------------

_______________________________________________
Tutor maillist  -  Tutor at python.org
http://mail.python.org/mailman/listinfo/tutor


End of Tutor Digest, Vol 97, Issue 41
*************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120316/0e9d41c3/attachment-0001.html>


More information about the Tutor mailing list