Commit 03dc51a9 authored by Andreas Jung's avatar Andreas Jung

Removed comment one should not pass None as arguments to

weightedIntersection|Union(). That's a contradiction to the
documentation and the implementation.
parent 9ae43624
...@@ -249,8 +249,8 @@ class IIMerge(IMerge): ...@@ -249,8 +249,8 @@ class IIMerge(IMerge):
v2 is 0 if the key was not in c2. Otherwise, v2 is 2, if v2 is 0 if the key was not in c2. Otherwise, v2 is 2, if
c2 is a set, or the value from c2. c2 is a set, or the value from c2.
Note that c1 and c2 must be collections. None may not be Note that c1 and c2 must be collections.
passed as one of the collections.
""" """
def weightedIntersection(c1, c2, weight1=1, weight2=1): def weightedIntersection(c1, c2, weight1=1, weight2=1):
...@@ -280,8 +280,7 @@ class IIMerge(IMerge): ...@@ -280,8 +280,7 @@ class IIMerge(IMerge):
v2 is 0 if the key was not in c2. Otherwise, v2 is 2, if v2 is 0 if the key was not in c2. Otherwise, v2 is 2, if
c2 is a set, or the value from c2. c2 is a set, or the value from c2.
Note that c1 and c2 must be collections. None may not be Note that c1 and c2 must be collections.
passed as one of the collections.
""" """
############################################################### ###############################################################
......
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