[Zope-CVS] CVS: Products/ZCTextIndex - Lexicon.py:1.4

Fred L. Drake, Jr. fdrake@acm.org
Tue, 14 May 2002 16:32:13 -0400


Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv29410

Modified Files:
	Lexicon.py 
Log Message:
Add a comment about some of the data structures.

=== Products/ZCTextIndex/Lexicon.py 1.3 => 1.4 ===
 
 class Lexicon:
-    
+
     __implements__ = ILexicon
 
     def __init__(self, *pipeline):
-        self.__wids = OIBTree()
-        self.__words = IOBTree()
+        self.__wids = OIBTree()  # word -> wid
+        self.__words = IOBTree() # wid -> word
         # XXX we're reserving wid 0, but that might be yagni
         self.__nextwid = 1
         self.__pipeline = pipeline