Thanks a lot Tim,
I also thought about that hack! :)
I could also parse the wql to put params in a list.
(It would also have be nice to have a list of not ordered properties (after
the wql parsing).
Something like props = [getattr(obj, p) for p in obj.notordered_properties]
:-P)
c = wmi.WMI()
> flds = ('Name','Caption','Description')
> wql = 'Select ' + ','.join(flds) + ' From win32_blabla'
> objs = (flds,c.query(wql))
> ...
> for obj in objs[1]:
> props = [getattr(obj,p) for p in objs[0]]
> print ';'.join(props)
>
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32