speeding up Python when using wmi

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

>> 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.

>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.

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!


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:

More information about the Python-list mailing list