obspy.core.util.base.ComparingObject

class ComparingObject[source]

Bases: object

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

Attributes

__dict__

__doc__

__hash__

__module__

__weakref__

list of weak references to the object (if defined)

Special Methods

__dir__

Default dir() implementation.

__eq__

Return self==value.

__format__

Default object formatter.

__init_subclass__

This method is called when a class is subclassed.

__ne__

Return self!=value.

__new__

Create and return a new object.

__reduce__

Helper for pickle.

__reduce_ex__

Helper for pickle.

__sizeof__

Size of object in memory, in bytes.

__subclasshook__

Abstract classes can override this to customize issubclass().