8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c739a commit 0fdcab1Copy full SHA for 0fdcab1
shapefile.py
@@ -854,6 +854,17 @@ def __dir__(self):
854
) # plus field names (random order if Python version < 3.6)
855
return default + fnames
856
857
+ def __eq__(self, other):
858
+ return (isinstance(other, self.__class__) and
859
+ self.__field_positions == other.__field_positions and
860
+ self.oid == other.oid and
861
+ len(self) == len(other) and
862
+ all(val_self == val_other
863
+ for val_self, val_other in izip(self, other)
864
+ )
865
866
+
867
868
869
class ShapeRecord(object):
870
"""A ShapeRecord object containing a shape along with its attributes.
0 commit comments