I want to install python 2.5.2 to run turbogears and bind to mysql and at the same time install plone in /opt using unified plone installer. The plone uses python 2.4.4 and is it possible to b...
I would like to construct 2 matrices and multiply them. When i did this in java I used a 2d array. However, I can't seem to find any documentation on this with python. So, how do you constr...
I've got a loop where at the end of each loop i'd like python to wait for the user to hit the enter key and then it will continue with the next iteration of the loop
how would i do this?
I am working on a telnet python BBS and have ran into two problems.
The first one is, I can not find any way to have the server print something in color on the client's screen like having t...
I need to strip out HTML, Punctuation, and Numbers in Python. I found a similar implementation of what I need in PHP (attached). At the very least, can someone show me a preg_replace equivalen...
I have a script below which doesn't work. If I execute it, I get no error messages. I know that most of the python persons on EE don't know much about ESRI ARCMAP. But I would appreciate some...
I am working on a program, written in Python for an Linux environment, that requires some commands to be executed in the terminal. An example of one of the commands I need to execute is "iwcon...
I think I've got a permissions problem.
I'm trying to take an input text file, strip out some data, and use it to insert into my database.
connection = MySQLdb.connect(host="localhost", ...
Hello,
I need to find a way to move the mouse cursor even if my application isn't focused, and i need a crossplateform code, it must at least work under Windows and Linux (with the same bas...
I thought I knew what I was doing, but
## test.py
import datetime
print datetime.today()
$ python test.py
Traceback (most recent call last):
File "test.py", line 3, in ?
print...
How do I get a list with complete paths of all files including in subdirectories. This list needs to be alphabetically ordered according to directories and then file names.
Current code is ...
Hi,
I've written a cool little script that helps to filter my email. It works really well and does exactly what I want.
I added another feature that would store all the email in a d...
I have a method that may or may not infinite loop depending on user input. I would like to wrap the call to it in some way so that I may specify a time out and, in the case that it runs longe...
For the sake of simplicity i have a test.txt file like this:
1 2 3
4 5 6
7 8 9
Using python I would like to read each line into a list so that i have
list1 = [1,2,3]
list2 = [4,5,...
Hi Experts,
How can I use Python Script instead of VBA Script in Excel or Word Application?.
Pls Explain with an Example.
Cheers,
Ragavan.
I've built a command-line build system based on the Python-based tool Scons. Since all the workstations running Scons have to have Python installed, I'd prefer to just do the few driver script...
Hi experts,
I am not too sure if this is possible. does any one known if there is a 3rd party tool which i can use to convert python to c#.
We have some codes here in python, I would like ...
Hello everyone,
I have been trying to grep certain lines out of STDIN. Basically this is a little app that email is piped to. It works fine, the onlt thing is I get the whole email. I need on...
Python has class and data variables. As a java programmer I started out thinking that class variables are static variables and data variables are instance variables. However, that does not app...
Ok, I'm a very-well-versed web developer in PHP and more. I've got a new job concentrating on front-end coding, but I have to cross over into some back-end as well, but based in Python not PH...
I have date string in format "%Y-%m-%d %H:%M:%S". I need to convert it into milliseconds and vice-versa. How to do that with Python?? I tried using following code but it throws exception:
...
Good afternoon,
I would like to write a Python script that would wait 20 seconds, and then execute a program (example: c:\program files\test\test.exe). I don't want to return any values or...
Hi,
I have recently built a 3D model in blender and was able to create some animations.
I am currently looking to call these animations dynamically from python.
Let me also say that I...
Hello,
I am trying to save/read a configuration file from within Python. Here is the situation I am in:
Currently, I am working on a script under Linux, in Python. I want to be able to s...
Hi All,
Sorry if a similar question has been asked before and answered.
I am trying to write a piece that will read from a file and populate the file content into various tables in a datab...