[python-win32] pyRegistry AttributeError
Tim Roberts
timr at probo.com
Mon Aug 16 18:58:53 CEST 2004
On Sat, 14 Aug 2004 23:51:45 -0400, "David Flory" <flory at fdu.edu> wrote:
> I just downloaded pyRegistry (the 2004-08-11 binary update, v1.0.3) and am
> having a problem. My test code is:
>
> ===============
> import pyRegistry
> baseKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes"
> basereg = pyRegistry.open(baseKey)
> print basereg.getValueNames()
> print basereg.getKeyNames()
> ============
>
> Which returns
> ...
> AttributeError: getKeyNames
>
> It appears as though open() and getValueNames() both work fine while
> getKeyNames throws an error.
Right. The documentation says "getKeyNames", but the source code
actually implements "getSubKeys".
--
- Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the Python-win32
mailing list