Row.__nonzero__, thanks Marin

This commit is contained in:
mdipierro
2012-08-28 19:11:43 -05:00
parent 2331aa4a0c
commit f0271ca2d5
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.00.1 (2012-08-28 19:07:21) rc4
Version 2.00.1 (2012-08-28 19:11:39) rc4
+3
View File
@@ -6386,6 +6386,9 @@ class Row(object):
def __contains__(self,key):
return key in self.__dict__
def __nonzero__(self):
return len(self.__dict__)>0
def update(self, *args, **kwargs):
self.__dict__.update(*args, **kwargs)