Re: How to create a file on users XP desktop

2007-10-07 Thread Craig Howard
On Oct 6, 2007, at 11:31 PM, goldtech wrote: > Can anyone link me or explain the following: > > I open a file in a python script. I want the new file's location to be > on the user's desktop in a Windows XP environment. fileHandle = open > (., 'w' ) what I guess I'm looking for is an enviro

Re: unit testing

2007-10-05 Thread Craig Howard
On Oct 4, 2007, at 3:02 PM, brad wrote: > Does anyone else feel that unittesting is too much work? Not in > general, > just the official unittest module for small to medium sized projects? > > It seems easier to write some quick methods that are used when needed > rather than building a program

Single-stepping through a python script

2007-07-17 Thread Craig Howard
>>Craig Howard schrieb: >> Hello All: >> >> Is is possible to compile a code object and single-step through its >> execution? >import pdb; pdb.set_trace() > >Look up the pdb module documentation. > >Diez Sorry, I didn't give enough deta

Single-stepping through a python script

2007-07-17 Thread Craig Howard
Hello All: Is is possible to compile a code object and single-step through its execution? Craig -- http://mail.python.org/mailman/listinfo/python-list

Executing a script created by the end user

2005-01-16 Thread Craig Howard
I am working on a python project where an object will have a script that can be edited by the end user: object.script If the script is a simple one with no functions, I can easily execute it using: exec object.script But if the object script is a bit more complicated, such as the example belo