Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #4K
~12.4K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

18 Posted Topics

Member Avatar for dilbert_here00

Hi All, I was wondering if any one of you observed the time taken to download or upload a file over ftp using python "ftplib" is very large as compared to performing FTP get/put over windows command prompt or using perl's "Net::FTP" module. I created a simple FTP client similar …

Member Avatar for dilbert_here00
0
567
Member Avatar for dilbert_here00

Hello All, I am trying to access files which are on a shared network file system, but not sure which python API I should be using. Description: For example the IP address of the file system is 10.10.10.1 1. From windows if i want to access this server i simply …

Member Avatar for Gribouillis
0
480
Member Avatar for dilbert_here00

Hi, I was trying to access some functions from a dll using python ctypes, but not sure how to pass pointers to get it to work. Here is an example of what i am trying to call: GetAvailableDevices ( SdkHandle session, DeviceDetail * pDev_list, uint32_t * dev_list_size ) Parameters: [in] …

Member Avatar for dilbert_here00
0
3K
Member Avatar for whypython

try something like this: data = open("file.txt", 'r') while True: line = data.readline() if line.startswith("Generation"): while True: list = [] line2 = data.readline() if line2.startswith("game"): dict[line1] = list.append(line2) elif line.startswith("generation"): break else: break

Member Avatar for TrustyTony
0
135
Member Avatar for dilbert_here00

Hello ALL, I was wondering if there is a way to run a python program at windows startup, without running the script as a windows service? I have a python program which runs a bunch of functions & then sometimes restarts the computer. At startup I want my script to …

Member Avatar for dilbert_here00
1
5K
Member Avatar for dilbert_here00

Hello All, I have a question on win32gui, how do I get the window ID corresponding to a window handle. I am able to get the window handle, class, caption using functions like "win32gui.GetWindowText", "win32gui.GetClassName" etc, but I can't find a function that returns the window ID for a particular …

0
117
Member Avatar for dilbert_here00

Hi All, Is there any python module which provides the capability to connect & configure WiFi on Microsoft Windows? Thanks

Member Avatar for jcao219
0
99
Member Avatar for dilbert_here00

Hi All, I have a popup window, which shows up after double clicking an installer. This window has 3 buttons: Back, Next & cancel. Using win32api I am able to get the window handles for all three buttons. I need to find out which of the buttons is enabled or …

Member Avatar for dilbert_here00
0
197
Member Avatar for Escom

This should work.. [CODE] import re pattern = '(\D+)\n' pattern2 = '(\d+)' s = re.compile(pattern2) p = re.compile(pattern) input = file("test.txt", "r") output = file("output.txt", "w") sum = 0 name = None; old = None while True: line = input.readline() out = p.findall(line) num = s.findall(line) if line is None …

Member Avatar for dilbert_here00
0
179
Member Avatar for dilbert_here00

Hi all, I am trying to open an excel file which is in the same folder as my python script. The script is able to open the file first time, & after that it just throws the following exception: pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Office Excel', u"'test .xls' could …

0
77
Member Avatar for dilbert_here00

Hello Everyone!! Is there a way to find the window handles pertaining ONLY to the current top level window & not its child windows. Using win32gui i am able to get the handles but it returns the handles of all the top level as well as its child windows. Any …

0
70
Member Avatar for dilbert_here00

Hi all, Following is a piece of code which tries to open an image using Tkinter, the root window opens but I am not able to see the image. I don't know what is wrong with my implementation. Could you please have a look at the code & see if …

Member Avatar for dilbert_here00
0
456
Member Avatar for dilbert_here00

Hi All, I have an issue regarding multi threading on windows XP : I have some x number of port commands which I have to send one by one to a device & then store the device response in an excel file. I used the unittest module to make a …

Member Avatar for shadwickman
0
201
Member Avatar for dilbert_here00

Hi, I am learning python CGI programming but got stuck with some issues. I would really appreciate if you could help me out. Problem: I have made a web page using Python CGI scripts; from one of the menu items on the web page, I am trying to call another …

Member Avatar for anurag_bagaria
0
442
Member Avatar for dilbert_here00

Hi All, I made a python ftp client on Windows XP which does binary get & put. The issue here is that when I do FTP manually the time taken to either GET or PUT is about half the time taken by my ftp client. Following is a snippet of …

Member Avatar for jlm699
0
104
Member Avatar for dilbert_here00

Hi All, I am using a python system command to execute a C++ executable file which takes certain binary input. For example: C++ exe name is "Test" "Test" takes the following input . '\x02\xfa\xcbQH\x00' command = '/opt/etc/Test %s' % ('\x02\xfa\xcbQH\x00') system command I am using is : os.popen(command) When this …

Member Avatar for dilbert_here00
0
640
Member Avatar for dilbert_here00

Hi All, Is it possible to flush the buffer of "popen2.Popen3(cmd)"after some time interval? I am starting a server forever using the popen2 module. After some time the buffer gets full & it stops logging messages. As a workaround to this, I am redirecting the output of 'cmd' to a …

Member Avatar for dilbert_here00
0
124
Member Avatar for linux

The End.