[Zope3-checkins] SVN: Zope3/trunk/src/zope/bforest/bforest. Make
inequality with sequences work.
Gary Poster
gary at zope.com
Thu Jul 14 21:09:43 EDT 2005
Log message for revision 33325:
Make inequality with sequences work.
Changed:
U Zope3/trunk/src/zope/bforest/bforest.py
U Zope3/trunk/src/zope/bforest/bforest.txt
-=-
Modified: Zope3/trunk/src/zope/bforest/bforest.py
===================================================================
--- Zope3/trunk/src/zope/bforest/bforest.py 2005-07-14 21:23:47 UTC (rev 33324)
+++ Zope3/trunk/src/zope/bforest/bforest.py 2005-07-15 01:09:43 UTC (rev 33325)
@@ -130,7 +130,7 @@
return False
try:
other = dict(other)
- except TypeError:
+ except (TypeError, ValueError):
return False
return dict(self)==other # :-/
Modified: Zope3/trunk/src/zope/bforest/bforest.txt
===================================================================
--- Zope3/trunk/src/zope/bforest/bforest.txt 2005-07-14 21:23:47 UTC (rev 33324)
+++ Zope3/trunk/src/zope/bforest/bforest.txt 2005-07-15 01:09:43 UTC (rev 33325)
@@ -209,6 +209,8 @@
>>> d == None
False
+ >>> d == [1, 2]
+ False
>>> d != None
True
>>> None == d
More information about the Zope3-Checkins
mailing list