summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-18 21:23:05 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-18 21:23:05 +0000
commit14eb96493b5b323eeee53b81a91f93508189b918 (patch)
tree919fbf1ec20668c4177bbd6ab48abff89b744e7e /ipalib/plugable.py
parent5ab45385dbdfdd3e5610f2751b5aeabbc244d446 (diff)
downloadfreeipa-14eb96493b5b323eeee53b81a91f93508189b918.tar.gz
freeipa-14eb96493b5b323eeee53b81a91f93508189b918.tar.xz
freeipa-14eb96493b5b323eeee53b81a91f93508189b918.zip
296: Added more to docstrings for NameSpace.__iter_() and NameSpace.__call__()
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 88b60a2bc..dfefbe16b 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -551,6 +551,8 @@ class NameSpace(ReadOnly):
If this instance was created with ``sort=True``, the names will be in
alphabetical order; otherwise the names will be in the same order as
the members were passed to the constructor.
+
+ This method is like an ordered version of dict.iterkeys().
"""
for name in self.__names:
yield name
@@ -562,6 +564,8 @@ class NameSpace(ReadOnly):
If this instance was created with ``sort=True``, the members will be
in alphabetical order by name; otherwise the members will be in the
same order as they were passed to the constructor.
+
+ This method is like an ordered version of dict.itervalues().
"""
for member in self.__members:
yield member