-
Notifications
You must be signed in to change notification settings - Fork 0
14. Magic Members
Below is a list of all implemented magic members in DSSL and their associated functionalities. Note that the internal use of magic functionality will always perform an instance access.
-
__init__
: Defines the constructor of a class. -
__str__
: Defines the explicit cast to a string. -
__debug__
: Defines the string for debug printing. -
__fmt__
: Defines the element for string formatting. -
__eq__
: Overloads the==
operator. -
__ne__
: Overloads the!=
operator. -
__lt__
: Overloads the<
operator. -
__le__
: Overloads the<=
operator. -
__gt__
: Overloads the>
operator. -
__ge__
: Overloads the>=
operator. -
__add__
: Overloads the+
operator. -
__and__
: Overloads the&
operator. -
__or__
: Overloads the|
operator. -
__xor__
: Overloads the^
operator. -
__sub__
: Overloads the-
operator. -
__concat__
: Overloads the~
operator. -
__lshift__
: Overloads the<<
operator. -
__rshift__
: Overloads the>>
operator. -
__mul__
: Overloads the*
operator. -
__div__
: Overloads the/
operator. -
__rem__
: Overloads the%
operator. -
__pow__
: Overloads the**
operator. -
__floordiv__
: Overloads the//
operator. -
__mod__
: Overloads the%%
operator. -
__not__
: Overloads the!
operator.