Abstract class for ValueList and SubkeyList.
More...
List of all members.
Public Member Functions |
def | __len__ |
| Length of list.
|
def | __getitem__ |
| Retrieves a list element by name.
|
def | get |
| Fetches the requested element by name, or the default value if the lookup fails.
|
Detailed Description
Abstract class for ValueList and SubkeyList.
Member Function Documentation
def pyregfi._GenericList.__getitem__ |
( |
|
self, |
|
|
|
name |
|
) |
| |
Retrieves a list element by name.
- Parameters:
-
name | The name of the subkey or value desired. This is case-insensitive. |
- Note:
- The registry format does not inherently prevent multiple subkeys or values from having the same name, having a key and a value with the same name, or having the same name in different cases that could both match. This interface simply returns the first match in the list. Lookups using this method could also fail due to incorrectly encoded strings stored as names. To identify any duplicates or elements with malformed names, use the iterator interface to check every list element.
- Returns:
- the first element whose name matches, or None if the element could not be found
The documentation for this class was generated from the following file: