On Jun 10, 1:33 am, Steven D'Aprano <steve-REMOVE- t...@cybersource.com.au> wrote: > On Wed, 09 Jun 2010 16:44:10 -0700, z00z wrote: > > ok when my code is like this everything works well > > > #/usr/bin/python > > input = raw_input(">> ").replace(',','\n') > > a=open("file","w") > > a.write(input) > > a.close() > > import sys,os,time,subprocess,threading,readline,socket,ifc > > Your hash-bang line is broken, missing the exclamation mark. > > What is "ifc" module? > > > but the problem is i have to import the libraries before the code so my > > code should be like this > > > #/usr/bin/python > > import sys,os,time,subprocess,threading,readline,socket,interfaces > > input = raw_input(">> ").replace(',','\n') > > a=open("file","w") > > a.write(input) > > a.close() > > The hash-bang line is still broken, and the import ifc is replaced by > interfaces. What is interfaces? > > > when i execute the above code no error message is given but no file is > > written. > > Apart from not having the interfaces module, it works for me. Are you > sure that's the code you're actually running? > > -- > Steven
yeah i have some mistakes there sorry about that ifc is interfaces and its a module (written by me) to detect network interfaces. but its ok now i sixed the problem thanks for your response anyway -- http://mail.python.org/mailman/listinfo/python-list