[Tutor] Newbie question

Liam Clarke-Hutchinson Liam.Clarke-Hutchinson at business.govt.nz
Tue Nov 22 23:05:30 CET 2005


Ooer, weird keystrokes... my apologies Bob.
 
>This is preferred, since any exception traceback will remain visible.
 
That's a really good point... I believe associating a  Python batch file
using pause would allow tracebacks to remain also.
 
@echo off
c:\Python24\Python %1 %2 %3 %4 %5 %6 %7 %8 %9
pause
 
or similar...

Regards,

Liam Clarke-Hutchinson
 <http://www.med.govt.nz/> www.med.govt.nz 

-----Original Message-----
From: bob [mailto:bgailer at alum.rpi.edu] 
Sent: Wednesday, 23 November 2005 10:44 a.m.
To: Liam Clarke-Hutchinson; 'Douglass, Erik'; 'tutor at python.org'
Subject: Re: [Tutor] Newbie question


At 12:20 PM 11/22/2005, Liam Clarke-Hutchinson wrote:


Hi Eric, 
 
Either - 
 
add this line to the end of your scripts -
discard = raw_input("Press enter to finish.")
 
Or - 
 
Click on Start > Run... type cmd.exe and use DOS to move to the directory
where your scripts are stored and run them via Python there.



 It's not trivial when you're starting. :-)
 
Regards, 

Liam Clarke-Hutchinson

-----Original Message-----
From: tutor-bounces at python.org [ mailto:tutor-bounces at python.org
<mailto:tutor-bounces at python.org> ] On Behalf Of Douglass, Erik
Sent: Wednesday, 23 November 2005 3:03 a.m.
To: tutor at python.org
Subject: [Tutor] Newbie question



I am trying to follow some online first timer tutorials, and I am writing
the practice scripts in notepad (only w32 at work :-()..   I save the script
with a .py extension, and when I run it it opens for a brief moment in a
command prompt then closes before I even have a chance to see what it says.
This may seem trivial, but Python also happens to be my first language so
this is all new to me.    Using Python 2.4.2





  

Thanks for any help.





  

Erik



 

A new monthly electronic newsletter covering all aspects of MED's work is
now available.  Subscribers can choose to receive news from any or all of
seven categories, free of charge: Growth and Innovation, Strategic
Directions, Energy and Resources, Business News, ICT, Consumer Issues and
Tourism.  See http://news.business.govt.nz <http://news.business.govt.nz/>
for more details.

 

 


 
  
govt.nz <http://www.govt.nz/>  - connecting you to New Zealand central &
local government services


  _____  

Any opinions expressed in this message are not necessarily those of the
Ministry of Economic Development. This message and any files transmitted
with it are confidential and solely for the use of the intended recipient.
If you are not the intended recipient or the person responsible for delivery
to the intended recipient, be advised that you have received this message in
error and that any use is strictly prohibited. Please contact the sender and
delete the message and any attachment from your computer. 

  _____  

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


A new monthly electronic newsletter covering all aspects of MED's work is now available.  Subscribers can choose to receive news from any or all of seven categories, free of charge: Growth and Innovation, Strategic Directions, Energy and Resources, Business News, ICT, Consumer Issues and Tourism.  See http://news.business.govt.nz for more details.




http://www.govt.nz - connecting you to New Zealand central & local government services

Any opinions expressed in this message are not necessarily those of the Ministry of Economic Development. This message and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivery to the intended recipient, be advised that you have received this message in error and that any use is strictly prohibited. Please contact the sender and delete the message and any attachment from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20051123/9f3c86e7/attachment-0001.htm


More information about the Tutor mailing list