I need my app to read a text, and replace the word "bomb" with *** I'm not having any luck can anyone help?
I'm looking for some Python code that will lock a file on a UNIX-like operating system (linux to be exact)
By lock I mean no other processes are able to write to the file while the lock is ...
I have a file which takes as input a database called test.db and outputs a comma delimited file. I want to make it tab delimited I tried just converting all the commas to tabs after outputing ...
This Python script ( http://www.aaronsw.com/2002/diff/diff.py )
apparently separates html source code into words by splitting the html at every space. Then it renders a nice html diff. ...
I'm just starting out with Python but I'm stuck already and can't proceed unless I understand how this works. I'm trying to append the contents of two files to a new file. Each of the two so...
I'm trying to write a script that print first 50 numbers separated by , without any spaces, end of line characters between number. How can I do that?
I tried to use:
print ",",
however it g...
I am looking to utilize either mid() or right() functions used in VB within Python. I can not seem to find similar functions for Python. I am trying to parse text in a file and if certain word...
Hello,
I wish to be able to check (in a python script) to see if a file and/or folder already exists on a users hard drive, and if it doesn't exist, download a file from (using the http pro...
I am attempting to concat. three strings within a FOR loop (see snippet). My issue is, after the second string (y), there seems to be a newline or return character, which is messing up my out...
I am new to python (perl guy) and need to know how to launch a python script (or several python scripts) from within another python script and continue with the logic flow of the parent python...
I am creating a properties file that python will read in and configure a server based on the key-value pairs. the issue is that i may have multiple numbers of a particular group (say cluster...
Hello,
Please review the following script. I know that many persons may not now the specifics of the ESRI software. I would simply like someone to review this script and tell me if there is a...
Hi,
Does anyone know any good online documentaion on python reflection. I have classes downloaded to my local directory and I need to call some method using reflection.
For example,
...
Hi All,
I'm new to linux development and to python I have a box runing fedora core 4 would you please send me a link or tutorial that is a how-to guide to start programming on linux using py...
Is there a native way using win32 APis in python to get % of CPu used and available memory for remote computers on a network?
I mean similar to the Win32::PerfLib module in perl.
Is there an...
I'm VERY new to python and I'm just trying to copy all files from one directory to another but I don't want to copy anything from subdirectories. Please help me as I have no clue how to do thi...
I have a UTC time tuple in the format according to the python time module (http://docs.python.org/lib/module-time.html). I want to convert this tuple to the Unix epoch time. I tried mktime, ...
I'm trying to test a Python script on WAMP. I have a working WAMP installation, and followed instructions to add Python (on this page: http://www.mplstutorial.com/wamp_python/python_wamp.html...
can python send keyboard and mouse events?
like, i want to type hello 10 times in my text editor.
Hello, I have many hundred .kmz files all named consecutively file001.kmz, file002.kmz etc. I need a python script that can do the following:
- rename each of the .kmz files to .zip files
...
hello, all,
on my machine, SuSE 10.2 Enterprise Server, Qt Designer (4.21), Python 2.5 installed. I want to use pyuic (3.14.1) to convert a qt form (.ui) to python form (.py). However ...
This a continuation of a previous question. I tried one of the suggested solutions. Following is the code and out put. Two small parts of the messages are changed for security.
import sys
...
hi i would like to know how do you write to a file but not overwriting it completely
eg:
testfile
james:1111
i wish to write it so it becomes james:4444 but it keeps overwriting the wh...
Hello experts,
I'm new to python, and having problems instantiating classes. My main method has a couple of lines like this:
debug = False
stats_d = {"cpu":[],"foo":[],"bar":[],...
I would like to create a input file from ABAQUS using Python. Scripting Language
I am right now learning and have some little experiance in ABAQUS and PYTHON.
if anybody has some experia...