Re: [python-win32] win32api documentation

2009-10-13 Thread J
On Tue, Oct 13, 2009 at 12:33, Tim Golden wrote: > I suspect you're coming from a C background? Or something > similar. Python's a very versatile language and tries to > help you avoid boilerplate. So you can do things like this: Yeah... similar, I guess. C++ to some degree, VB, Basic, a smatter

Re: [python-win32] win32api documentation

2009-10-13 Thread Tim Golden
J wrote: And it does indeed work. We're using the latest 2.6, and so far everything has worked well. NumberOfCores and NumberOfLogicalProcessors does just what I hoped they would do, so now I have a small bit of n00b code: print "Getting processor information now...\n" I suspect you're coming

Re: [python-win32] win32api documentation

2009-10-13 Thread J
On Mon, Oct 12, 2009 at 12:13, Tim Golden wrote: > Ummm. Not quite. > > c.Win32_Processor is a class-ish thing which you have to call to > pull back the *list* of instances. Which you can then just > count. So something like this: > > n_processors = len (c.Win32_Processor ()) Thanks for saving me

Re: [python-win32] win32api documentation

2009-10-12 Thread Tim Golden
J wrote: Ok... that all helped a lot. I've been playing around with memory a bit, and cache, and I'll poke at that some more later. Today I've been looking into processors. So WMI provides Win32_Processor and from what I've read, there exists one instance of Win32_Processor for each processor

Re: [python-win32] win32api documentation

2009-10-12 Thread J
Ok... that all helped a lot. I've been playing around with memory a bit, and cache, and I'll poke at that some more later. Today I've been looking into processors. So WMI provides Win32_Processor and from what I've read, there exists one instance of Win32_Processor for each processor on a SMP ma

Re: [python-win32] win32api documentation

2009-10-09 Thread Tim Golden
J wrote: Awesome! Thanks a lot. I'll dig into that after lunch. I finally stumbled on the ActiveState info on win32api with a ref for all the calls, and I'll have to do a little more digging. Well that's simply a copy of the CHM which is provided with the pywin32 installation. I host anoth

Re: [python-win32] win32api documentation

2009-10-09 Thread J
On Fri, Oct 9, 2009 at 11:06, Tim Golden wrote: > Here at least I can help. Try using WMI which eats this kind of > thing for breakfast[*]. Start here: > >  http://timgolden.me.uk/python/wmi.html > > taking in this: > >  http://timgolden.me.uk/python/wmi-tutorial.html > > and this: > >  http://ti

Re: [python-win32] win32api documentation

2009-10-09 Thread Tim Golden
J wrote: I've been searching high and low looking for any sort of decent reference for the win32api in python and I can't find anything that is useful. There isn't much, in spite of a few attempts (my own included) to get something going. There's never enough time... Ultimately, the win32api