Commits

keltus  committed 34ab667

added __iter__ method to IRCDict in ircbot.py

  • Participants
  • Parent commits fbff28d

Comments (0)

Files changed (2)

+2005-01-19  Jeff Huang  <keltus@users.sourceforge.net>
+
+	* ircbot.py (IRCDict.__iter__): Added __iter__ method for IRCDict.
+
 2005-01-17  Joel Rosdahl  <joel@rosdahl.net>
 
 	* ircbot.py (IRCDict.__contains__): Added __contains__method for
         ck = irc_lower(key)
         del self.data[self.canon_keys[ck]]
         del self.canon_keys[ck]
+    def __iter__(self):
+        return iter(self.data)
     def __contains__(self, key):
         return self.has_key(key)
     def clear(self):