fixed Issue 1453: Missing equivalent for Row.__int__ that works with new long-type record id, thanks Dominic
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.4.6-stable+timestamp.2013.04.15.18.05.12
|
||||
Version 2.4.6-stable+timestamp.2013.04.15.22.57.21
|
||||
|
||||
@@ -6851,6 +6851,9 @@ class Row(object):
|
||||
def __int__(self):
|
||||
return object.__getattribute__(self,'id')
|
||||
|
||||
def __long__(self):
|
||||
return long(object.__getattribute__(self,'id'))
|
||||
|
||||
def __eq__(self,other):
|
||||
try:
|
||||
return self.as_dict() == other.as_dict()
|
||||
|
||||
Reference in New Issue
Block a user