Friends,
I am new to python and did search on the web on how to achieve this:
( I am trying to append the line numbers to all the lines of a file for now)
Thanks!!
=
import os, sys
fileName = os.path.join("C:", "temp", "x1.txt")
fileobject = open
ite.o M_socket.o M_sre_compile.o
M_sre_constants.o M_sre_parse.o M_ssl.o M_stat.o M_string.o M_struct.o
M_subprocess.o M_tempfile.o M_textwrap.o M_threading.o M_token.o
M_tokenize.o M_traceback.o M_tty.o M_types.o M_unittest.o M_urllib.o
M_urlparse.o M_uu.o M_warnings.o M_webbrowser.o /home/ps/app/lib/
pp/Python-2.6.2
make
The last command from make with its error is the following
gcc -pthread -shared build/temp.linux-i686-2.6/home/ps/soft/
Python-2.6.2/Modules/_ctypes/_ctypes.o build/temp.linux-i686-2.6/home/
ps/soft/Python-2.6.2/Modules/_ctypes/callbacks.o build/temp.linux-
i686-2.6/home/ps/so
Hi
Can anyone give me solution to create a python binary file (bytecode) other
than pyc file .So my source code be secure.. I am working on ubuntu 9.04
with python2.6.. I
Regards
Sanju
--
http://mail.python.org/mailman/listinfo/python-list
How to check whether my gui application is running or not.If its already
running i have to quit my program other wise i need to launch my program.
Can anybody suggest a solution to this
Regards
Sanju
--
http://mail.python.org/mailman/listinfo/python-list
I want to handle a kill signal..In my program i wrote like this
def handler(signum, frame):
print "Signal",signum
delete_temp_file()
exit(1)
signal.signal(signal.SIGTERM, handler)
And when i tried pkill processid .program is exited but not deleting the
temp file
--
http://mail.python