Commit 1d7af199 authored by Thomas Lotze's avatar Thomas Lotze

added missing __getitem__ method to IMinimalDictionary, fixed another doc string

parent 3037f42a
...@@ -140,13 +140,19 @@ class IMinimalDictionary(ISized, IKeyed): ...@@ -140,13 +140,19 @@ class IMinimalDictionary(ISized, IKeyed):
Return the default if has_key(key) is false. Return the default if has_key(key) is false.
""" """
def __getitem__(key):
"""Get the value associated with the given key.
Raise KeyError if has_key(key) is false.
"""
def __setitem__(key, value): def __setitem__(key, value):
"""Set the value associated with the given key.""" """Set the value associated with the given key."""
def __delitem__(key): def __delitem__(key):
"""Delete the value associated with the given key. """Delete the value associated with the given key.
Raise KeyError if the key if has_key(key) is false. Raise KeyError if has_key(key) is false.
""" """
def values(min=None, max=None, excludemin=False, excludemax=False): def values(min=None, max=None, excludemin=False, excludemax=False):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment