[python-win32] Python disk usage in Add-remove Programs

2005-05-18 Thread Ray S
I noticed that my new install of 2.4 etc. has some large(!) numbers. ActivePython 78MB (true) ctypes.9.2 148MB numarray 1.1.1 148MB Numeric23.6 148MB py2exe .5.4 148MB It appears that they are reporting the size of the entire c:\Python24 directory tree "size on disk" Just an observation... Ray

Re: [python-win32] cleaning up after DDE client requests

2005-04-29 Thread Ray S
At 12:11 PM 4/28/2005, Jim McLoughlin wrote: >For a small number of requests, things are fine. However, a sequence of 1000 >requests seems to run into problems. So my question is: is there some clean >up code that can be used for conversations, servers, etc? Can I do something >like conversa

Re: [python-win32] reading from console child process

2005-03-30 Thread Ray S
At 11:49 PM 3/29/2005 -0500, Chris Maloof wrote: Hello, I'm trying to read the output from a WinXP console application using PythonWin -- that is, I start the application as a child process, and I want to be able to read the ASCII text in the application's screen. I wrote some pipes code to do wa

[python-win32] launching an exe reboots XP...

2005-02-08 Thread Ray S
I'm trying to launch a 3rd party analyzer .exe on XP; double-clicking in explorer runs as normal. From Python, I've tried startfile(), system(), spawnl(), and popen(), with various modes, from scripts and command session. All start the program's GUI to load, then generate a "Data integrity has

[python-win32] time. delay oddities

2005-01-25 Thread Ray S
With the pure Python code below, I get results like: micro sec: 1.0 12.2 154.8 micro sec: 0.9 11.3 156.0 when requesting 0, 10 and 160 us, which seems reasonable - PII600 Win2K Py2.2. On Linux with a 2GHz Py2.3 it seems to always return 0.0 Additionally, I don't see why mydelay works as it does; I

[python-win32] sleep() fine-control in Python - RDTSC, select() etc.

2005-01-24 Thread Ray S
I have a need for a time.clock() with >0.16 second (16us) accuracy. The sleep() (on Python 2.3, Win32, at least) has a .001s limit. Is it lower/better on other's platforms? I tried this test code, 2.4GHz P4 Python 2.3.3 (#51, Dec 18 2003, 20:22:39) [MSC v.1200 32 bit (Intel)] on win32 import

[python-win32] Windows process priority setting question... (cross-post)

2004-12-15 Thread Ray S
Is it possible to have an app re-set its own priority, a-la task manager? I see that 2.4+ has the ability for sub-processes, but only on creation. Apparently win32process.SetPriorityClass(handle, dwPriorityClass) and PyCWinThread.SetThreadPriority(priority) allows one to change a sub while a the su