Commit 30403796 authored by Jim Fulton's avatar Jim Fulton

Finish fixing bug in __or__ that Chris has started to fix.

parent 3d218ce1
...@@ -30,7 +30,7 @@ Example usage: ...@@ -30,7 +30,7 @@ Example usage:
print i['blah'] print i['blah']
$Id: InvertedIndex.py,v 1.21 1997/03/20 21:51:01 jim Exp $''' $Id: InvertedIndex.py,v 1.22 1997/03/22 13:02:17 jim Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -82,6 +82,9 @@ $Id: InvertedIndex.py,v 1.21 1997/03/20 21:51:01 jim Exp $''' ...@@ -82,6 +82,9 @@ $Id: InvertedIndex.py,v 1.21 1997/03/20 21:51:01 jim Exp $'''
# (540) 371-6909 # (540) 371-6909
# #
# $Log: InvertedIndex.py,v $ # $Log: InvertedIndex.py,v $
# Revision 1.22 1997/03/22 13:02:17 jim
# Finish fixing bug in __or__ that Chris has started to fix.
#
# Revision 1.21 1997/03/20 21:51:01 jim # Revision 1.21 1997/03/20 21:51:01 jim
# Rearranged and, or, and near. # Rearranged and, or, and near.
# Got rid of get/setstate. # Got rid of get/setstate.
...@@ -153,7 +156,7 @@ $Id: InvertedIndex.py,v 1.21 1997/03/20 21:51:01 jim Exp $''' ...@@ -153,7 +156,7 @@ $Id: InvertedIndex.py,v 1.21 1997/03/20 21:51:01 jim Exp $'''
# #
# #
# #
__version__='$Revision: 1.21 $'[11:-2] __version__='$Revision: 1.22 $'[11:-2]
import regex, regsub, string, copy import regex, regsub, string, copy
...@@ -283,6 +286,12 @@ class ResultList: ...@@ -283,6 +286,12 @@ class ResultList:
except: pass except: pass
result[key] = v result[key] = v
for key,v in x.items():
try: self[key]
except: result[key]=v
return result
def Not(self, index): def Not(self, index):
'''\ '''\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment