speeding up Python when using wmi

Tim Golden tim.golden at viacom-outdoor.co.uk
Mon Nov 28 10:30:27 EST 2005


[rbt]
>> Here's a quick and dirty version of winver.exe written in Python:

[Tim Golden]
> In short, I recommend replacing the wmi module by the underlying
> calls which it hides, and replacing Tkinter by a win32gui MessageBox.

[rbt]
>Wow... thanks. I didn't expect someone to completely rewrite it like 
>that. I'll use your example and name it PyWinver and attribute it to 
>you. Hope you don't mind. Great learning experience.
>Thanks!

My pleasure. It wasn't that much of a rewrite; there were
only, what, a dozen lines in the original. One of those
rare occasions when I have to *not* recommend using the 
wmi module!

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list