Advertisement

Experts Exchange is proud to announce the Front Runners the Annual Awards and the 3rd Quarter Hot Shots. Who is at the top? See for yourself!

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Python Solutions: 26 - 50 of 289
 
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?
Hi all, I am new to python. I have 2 problesms. 1. I want to be able to distinguish between integers and other types in python. for example I wan to be able to say a list = [ 1, ...
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 have seen the binascii() function in Python, but can't find anything to do the reverse. Does anybody know of a solution?
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'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 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", ...
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...
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 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...
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 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 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...
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...
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 ...
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'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 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...
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: ...
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...
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 ...
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...
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...
Hi Experts,          How can I use Python Script instead of VBA Script in Excel or Word Application?.          Pls Explain with an Example. Cheers, Ragavan.
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...