Thanks. So noted. I suspect I need to use something like sys.exit().
However, I'm in development mode right now with IDLE, and there's a
small penalty for using it with IDLE. I think it's a dialog that asks
if one wants to really exit. The files are maybe 70 characters per line, and typically no more than 100 lines. I know of no other way to make it faster. It should be sufficient for these purposes. Although I user might try to rename 500 files at a single shot. bob gailer wrote: Wayne Watson wrote:Enclosed is a segment of a program which copies a txt file, but replaces the first line with a new one. The new one has a suffix of tmp. After it executed the code and exited the program normally (running out of code), I couldn't access the new tmp file. It was listed by Win XP, but I got a "file in use" messge. Do I have to exit differently to free the tmp file for inspection? --
Wayne Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet "If voting made any difference they wouldn't let us do it." -- Mark Twain Web Page: <www.speckledwithstars.net/> |
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor