[Tutor] The Order of Imports and install order of modules and other matters (XP vs W7, ...)
ALAN GAULD
alan.gauld at btinternet.com
Sat Feb 13 17:19:06 CET 2010
> 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
> IDLE.
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.
HTH,
Alan G.
More information about the Tutor
mailing list