Hi Dave Sorry, I wasn't being obtuse. Here is more info:
1. Run Python Programs with Batch file - OS (correction): Windows 64-bit Vista SP2 - Python 2.5.4 64 bit (AMD64) - The Python programs run from a Windows batch file (test.bat) in a CMD window initiated from Windows Explorer. All programs except one execute successfully which stops with a memory error but the batch file continues to execute the other Python programs (as it should). 2. Run Python Programs with Python Interpreter - Start Idle, File/Open .py program, Run/Run Module - When the program with the memory error in 1. is run independently with Idle it works. Bob Gailer suggested running the Python programs individually in CMD one after the other. This is sensible but my test programs run for days and the full suite of programs take longer. The programs are memory intensive (the 64-bit machine has 8gb ram). Hence, it is not easy to test this scenario right now. It seems to me as if Windows is not freeing up memory between Python invocations in the batch file but can't be sure. I said earlier that this has happened before but the fix, as now, is to run the program individually with Idle. Hth ... Dinesh -------------------------------------------------------------------------------- Message: 5 Date: Sun, 19 Jul 2009 11:56:15 -0700 From: Dave Kuhlman <dkuhl...@rexx.com> To: tutor@python.org Subject: Re: [Tutor] python interpreter vs bat file Message-ID: <20090719185615.ga5...@cutter.rexx.com> Content-Type: text/plain; charset=us-ascii On Sun, Jul 19, 2009 at 05:40:41AM -0700, Dinesh B Vadhia wrote: > > 1. Run Python Programs with Batch file > > Python programs run from a Windows XP batch file (test.bat) in a CMD > window initiated from Windows Explorer. All programs except one > execute successfully which stops with a memory error but batch file > continues to execute other Python programs (as it should). > > > > 2. Run Python Programs with Python Interpreter > > Fire up Python Interpreter, open .py program, Run. > Dinesh - Please tell us how you did this. Did you type "python" at a command prompt and then see the ">>>" prompt? If so how did you "open .py program, Run"? Or, did you start Idle (or some other IDE) then click File-->Open, then run with the Run-->RunModule menu item? You have been asked several times for more information. You really need to read: http://catb.org/~esr/faqs/smart-questions.html There are people on this list who are very generous with their time. It's a valuable resource. Please don't waste it. I don't mean to be rude. But, you will help us all, yourself included, if you think carefully when asking a question. - Dave
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor