[python-win32] Fwd: Using Python and WMI for multiple machines
mail at timgolden.me.uk
Thu Feb 21 09:10:52 CET 2008
Kevin Horn wrote:
> On Feb 20, 2008 3:04 AM, Tim Golden <mail at timgolden.me.uk> wrote:
[... snip Python 2.5+ code example ...]
> Note that the above code will only work under Python 2.5, since that's when
> the "with" statement was added.
> (Some of us are still stuck in 2.4 land :) )
> In 2.4 and earlier, it could look something more like:
Thanks for picking that up, Kevin. I'm normally quite
conservative in my examples but for some reason I've
been doing quite a bit of "with..." code recently, and
it just came more naturally to my fingers!
More information about the python-win32