_winreg doc unclear on DeleteValue()

rtilley rbt at athop1.ath.vt.edu
Tue Nov 15 14:36:03 CET 2005


A portion from the _winreg Documnetation:
-----------------------------------------------------------------
DeleteValue(key, value)
     1. Removes a named value from a registry key. --> OK
     2. key is an already open key, or one of the predefined HKEY_* 
constants. --> OK
     3. value is a string that identifies the value to remove. --> 
misleading
------------------------------------------------------------------

When I use EnumValue like this:

Value_Name, Value, Type = EnumValue(key, index)

I expect to use DeleteValue like this (as per the docs):

DeleteValue(open_run_key, Value)

When in fact, I should use it like this:

DeleteValue(open_run_key, Value_Name)

Perhaps this is nitpicking and I'm the only person in the world that 
finds the docs a bit mis-leading here, if so, just disregard this post.

rbt




More information about the Python-list mailing list