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
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
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
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
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 ***