On 18/04/2010 21:45, drk...@speakeasy.net wrote:
In the following code, there is a substantial performance difference from a
minor change. I'm guessing it has to do with the lower level calls and not the
actual wrapper, but I am curious if anyone can explain it.

http://paste.pocoo.org/show/202976/

The answer lies in the fact that Name is the key value for CIM_DataFile
while Description is not:

<code>
import wmi

print (wmi.WMI ().CIM_DataFile.keys)

</code>

As a bonus, you can run the wmiweb.py which comes with the wmi package
and browse around the classes looking at theirproperties, keys, etc.

TJG
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to