Advertisement

Experts have come up with some helpful tips for getting a solution to your problem fast.

 

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

 
Time Tested Python Solutions: 51 - 75 of 221
 
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...
Hello everyone, I'm currently developing a tool in Python using wxPython for my GUI. Now I'm using wx.Shell() to execute commands to the command prompt. Now this all works fine, but the c...
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...
I use some code as below: from xml.dom import minidom xmldoc1 = minidom.parse('my.xml') When I run it, I got error as below: load_module xml load_module xml.dom load_module xml.dom.min...
Hi Experts,  if I want to comapre 2 files in Python to check if my src File is either the same date or newer than dest File. i have written my script, I only want to copy it if it is newer....
Hi, I am confused on how to get the ping.py module working. Could someone write me a simple script that will ping a host, let's say www.yahoo.com and return the result to the command line u...
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, 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...
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...
can python send keyboard and mouse events? like, i want to type hello 10 times in my text editor.
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...
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...
In python is it possible to print your programs output on the same line? So you have one output string that is printed, then another, but the second one overwrites the first one instead of ...
Hello, I am trying to create a python script to automate some functions in ESRI ArcMap. (I previously recieved assistance with a more complicated, but similar script http://www.experts-exchan...
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 ...
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...
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...
I am experiencing the following error after compiling a Python program into an executable...    C:\Python\Python25\pyinstaller-1.3\minimal\distminimal>minimal.exe    no resource file for m...
Is there anyone that has worked with the Paramiko package for python? I'm trying to implement a nice abort function in my program that I'm creating for both uploading and downloading. I ...
The python readlines() function gives me a list, output[], from file and I want to delete any line from output[] that is short the required number of list elements (14).  I can print the index...
Hey all, I am new to Python, though have a PHP background. In my program I request the user input for height in CM. I need to convert that to the equivalent height in feet and inches. I ...
Ok so with Python, I have my app which is writing to a log file. I can't find a way to start a new line for each entry. I tried doing PHP things like appending \r\n or just \n to the write str...
Hi Experts, I have a Python class called "KeywordTree(object)" already. Now I want to create another Python class "KeywordMember"  to contain some extra data. The "KeywordTree" class s...
I'm trying to parse Apache log files with Python and I'm having difficulty parsing the time zone information. import time t = "23/Mar/2007:02:01:14 -0500" pdate = time.strptime(t, "%d/%b/...
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...