[python-win32] Connect to Excel via COM leaves process hanging

2005-01-24 Thread Morgan, Michael L (US SSA) GXP
Howdy, With the following snippet of code. from win32com.client import Dispatch xl_app= Dispatch("Excel.Application") xl_app.Quit() del xl_app This leaves 'Excel' in the process list. How can I get rid of it? Thanks for your time, Mike ___ Pytho

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

2005-01-24 Thread RayS
At 11:48 PM 1/24/2005 -0300, Gabriel Genellina wrote: >At 24/1/2005 21:24, you wrote: > >>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? > >Try a waitable timer ><

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

2005-01-24 Thread Gabriel Genellina
At 24/1/2005 21:24, you wrote: 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? Try a waitable timer

[python-win32] Re: on the way to find pi!

2005-01-24 Thread Gabriel Genellina
At 24/1/2005 08:00, you wrote: # Call pi(20) for first 20 digits, or pi() for all digits def pi(n=-1): printed_decimal = False r = f((1,0,1,1)) while n != 0: if len(r) == 5: stdout.write(str(r[4])) This code gives the number in an unusual format like "3.1415'None'"

[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

Re: [python-win32] on the way to find pi!

2005-01-24 Thread Steve Holden
Tim Roberts wrote: On Sun, 23 Jan 2005 10:28:47 -0800 (PST), Ali Polatel <[EMAIL PROTECTED]> wrote: I found a code which calculates pi with an interesting algorithm the programme code is below: from sys import stdout def f((q,r,t,k)): n = (3*q+r) / t if (4*q+r) / t == n: return (10*

[python-win32] on the way to find pi!

2005-01-24 Thread Tim Roberts
On Sun, 23 Jan 2005 10:28:47 -0800 (PST), Ali Polatel <[EMAIL PROTECTED]> wrote: I found a code which calculates pi with an interesting algorithm the programme code is below: from sys import stdout def f((q,r,t,k)): n = (3*q+r) / t if (4*q+r) / t == n: return (10*q,10*(r-n*t),t,k,n)

[python-win32] RE: on the way to find pi!

2005-01-24 Thread Batista, Facundo
Title: RE: on the way to find pi! [Fredrik Lundh] #- what's the point of that?  the math module already contains #- pi with as many #- decimals as you can put in a Python float: #- #- $ python #- >>> pi = 3.1415926535897932384 #- >>> pi #- 3.1415926535897931 #- >>> impo

[python-win32] NT filepermissions

2005-01-24 Thread Atul Kamat
Hi All,   This is a query about the NT file/Directory Permissions.In Windows NT,if we set the permissions  for a file,it tends to ignore them and  inherits the parent directory`s permissions.Is there a way by which i can make the file permissions work irrespective of what the parent directory`s