Re: [Tutor] copy zip file from source folder to destination and unzip all files within destination

2009-11-21 Thread Kent Johnson
On Fri, Nov 20, 2009 at 2:09 PM, MARCUS NG marker...@gmail.com wrote: Kent, 1)I am not sure what you meant by escape the \ can you show me an example. See Alan's email for examples. 2)how may I reply to tutor so that the thread continues? Reply All Kent

Re: [Tutor] Processing rows from CSV

2009-11-21 Thread Joe Bennett
Doing this a lot in my daily activities... your example For row in reader: If row['foo'] == 'something' : do this etc. 'row' will return a row within 'reader'... You can then pick through the headers like foo and see what is there... I have some compare scripts that do exactly what

Re: [Tutor] Global Variables

2009-11-21 Thread bob gailer
Alan Gauld wrote: dname() def dname(): global nl This looks for or creates an nl in your module. Beg to differ- global will not create it. def f():global a ... a Traceback (most recent call last): File interactive input, line 1, in module NameError: name 'a' is not defined

Re: [Tutor] Global Variables

2009-11-21 Thread ALAN GAULD
This looks for or creates an nl in your module. Beg to differ- global will not create it. def f():global a What it does is alert the compiler that assignment to the variable will make it global. Thats what I meant, that an assignment to a variable marked as global inside a function

[Tutor] numpy and py2exe

2009-11-21 Thread Jeff Peery
Hello I have a python app that uses wxPython, numpy, and I'm trying to package it with py2exe. I get the below error. I tried putting a dummy __init__.py file in the distutils.tests directory but this did not solve the problem. how may I fix this?   *** searching for required modules ***