[Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)
sierra_mtnview at sbcglobal.net
Sat Feb 13 19:44:28 CET 2010
Thanks. Sounds like good advice. BTW, I just did some advertising on the
AstroPy NG a moment ago for your books. A query for good Py books.
On 2/13/2010 8:19 AM, ALAN GAULD wrote:
>> Another question on similar matters. If I write a program and "compile" it for
>> distribution, and a user has 2.6 going to be able to execute it. I would like to
>> the the compiled program is free of such restrictions. That is, it's an
>> independent program. I would like to think that if I've been testing it
>> successfully in IDLE, that the compiled version will produce everything I see in
> Never ever, ever, test anything for distribution inside an IDE!
> Always test it as it will be run - from the OS prompt or filemanager.
> IDEs can introduce subtle differences of behaviour that conceal bugs.
> Similarly never ever do a final test with debuggng code switched
> on or the debugger active, again the debugger can cause subtle
> changes in behaviour.
>> For example, when I run it in IDLE, and make a connection to the (camera)
>> h/w, a dos-like window appears that I otherwise never see. The program
>> purposefully either sends warning and error messages there through some built-in
>> facility or creates that window somehow. I'm dealing with tkinter in the app
>> code. I didn't write the (1600 line) program, but certainly am modifying it.
> Do you run it with python or pythonw, that might also make a difference.
> Alan G.
"Crime is way down. War is declining. And that's far from the good
news." -- Steven Pinker (and other sources) Why is this true, but yet
the media says otherwise? The media knows very well how to manipulate us
(see limbic, emotion, $$). -- WTW
More information about the Tutor