From 14eb96493b5b323eeee53b81a91f93508189b918 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Thu, 18 Sep 2008 21:23:05 +0000 Subject: 296: Added more to docstrings for NameSpace.__iter_() and NameSpace.__call__() --- ipalib/plugable.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ipalib/plugable.py b/ipalib/plugable.py index 88b60a2b..dfefbe16 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 -- cgit