obspy.core.util.base.ComparingObject

class ComparingObject[source]

Bases: object

Simple base class that implements == and != based on self.__dict__

Special Methods

ComparingObject.__delattr__(name, /)

Implement delattr(self, name).

ComparingObject.__dir__()

Default dir() implementation.

ComparingObject.__eq__(other)[source]
ComparingObject.__format__(format_spec, /)

Default object formatter.

ComparingObject.__ge__(value, /)

Return self>=value.

ComparingObject.__getattribute__(name, /)

Return getattr(self, name).

ComparingObject.__gt__(value, /)

Return self>value.

ComparingObject.__init__()
ComparingObject.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

ComparingObject.__le__(value, /)

Return self<=value.

ComparingObject.__lt__(value, /)

Return self<value.

ComparingObject.__ne__(other)[source]
ComparingObject.__new__(**kwargs)
ComparingObject.__reduce__()

Helper for pickle.

ComparingObject.__reduce_ex__(protocol, /)

Helper for pickle.

ComparingObject.__repr__()

Return repr(self).

ComparingObject.__setattr__(name, value, /)

Implement setattr(self, name, value).

ComparingObject.__sizeof__()

Size of object in memory, in bytes.

ComparingObject.__str__()

Return str(self).

ComparingObject.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).