1. 10 Jun, 2002 2 commits
    • Chris McDonough's avatar
      For "old" Interface packages b/w compatibility: · b3b2584c
      Chris McDonough authored
        Because the "old" Interface package allowed the import of the Attribute
        class directly from the Interface package, and some packages
        (such as CMF) expect a class back from "from Interface import Attribute":
      
        - Renamed Attribute.py to _Attribute.py and did the necessary
          housekeeping to make sure all the other parts of the Interface
          package knows about the change.
      
        - Changed __init__.py to import Attribute from _Attribute
      
      New features and changes:
      
        - Removed iclass.py  (it was no longer used).
      
        - Gave the base interface class (Interface._InterfaceClass) a __hash__
          method as ExtensionClass instances do not hash like normal
          instances, and we require that interfaces be hashable in order to
          store them as dictionary keys and whatnot in registries.
      b3b2584c
    • Guido van Rossum's avatar
      Disable tests using verify_class_implementation(), which has · c127663e
      Guido van Rossum authored
      disappeared from the Interface package.  What replaces it?
      c127663e
  2. 08 Jun, 2002 4 commits
  3. 07 Jun, 2002 8 commits
  4. 06 Jun, 2002 7 commits
  5. 05 Jun, 2002 2 commits
  6. 04 Jun, 2002 5 commits
  7. 31 May, 2002 2 commits
  8. 29 May, 2002 9 commits
  9. 28 May, 2002 1 commit
    • Tim Peters's avatar
      OkapiIndex.query_weight(): return an upper bound on possible doc scores. · 23578a23
      Tim Peters authored
      CosineIndex.query_weight():  rewrote to squash code duplication.  No
      change in what it returns (it's always returned an upper bound on
      possible doc scores, although people probably haven't thought of it
      that way before).
      
      Elsewhere:  consequent changes.
      
      Problems:
      
      + mhindex.py needs repair, but I can't run it.  Note that its current
        use of query_weight isn't legitimate (the usage doesn't conform to
        the IIndex interface -- passing a string is passing "a sequence",
        but not the intended sequence <wink>).
      
      + ZCTextIndex doesn't pass query_weight() on.
      
      + We've defined no methods to help clients compute what needs to be
        passed to query_weight (a sequence of only the positive terms).
      
        I changed mailtest.py to cheat, but it's doing a wrong thing for
        negative terms.
      
      + I expect it will be impossible to shake people from the belief that
        100.0 * score / query_weight is some kind of "relevance score".  It
        isn't.  So perhaps better not to expose this in ZCTextIndex.
      23578a23