Re: [python-win32] smart : __del__ replace atexit

2006-08-22 Thread Mark Hammond
> A little stunt : in COM server (with pywin32), atexit is not > interesting. Yeah, Python is never 'finalized' when it is loaded for use by a COM object. > Then, look, in the class-serverCOM, the method __del__(self): > When you close the COM-server, or when you exit the > application who cal

Re: [python-win32] attribut de classe

2006-08-22 Thread Mark Hammond
> If I open twice the COM server, in the same application, when > the first > instance change the attr of class, the change is not visible > from the second > instance. When a COM attribute is set, Python does the equivalent of: setattr(instance, 'attr', 'value') So - even if you have: clas

[python-win32] New to Python from Perl

2006-08-22 Thread Gallagher, Tim (NE)
Hey all I am learning Python and having a fun time doing so. I have a question for y'all, it has to do with active directory. I want to get the last login for a computer from Active Directory. I am using the active_directory module and here is my code. [START] import active_directory comput