simple question

xinghua shi csshi99 at yahoo.com
Mon Nov 4 22:40:34 EST 2002


Hey, I am new to Python world. I wrote a simple program but got error. Could someone help me fix this? Thanks.
import sys,os,string
pid = os.getpid()
filename = ".ld.mon." + str(pid)
print filename
       ^^^^^^^^^^Name error: name "filename" is not defined.
Do I really need to define "filename" before use it? I tried char *filename but still didn't work. Thanks for the help.
 
 
 



---------------------------------
Do you Yahoo!?
HotJobs - Search new jobs daily now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20021104/2b12a55a/attachment.html>


More information about the Python-list mailing list