class with preset right handed magic methods
Project description
Overview
This project contains the Scaevola class which can be used as a baseclass to utilize its preset righthanded magic methods: __ge__, __gt__, __radd__, __rand__, __rdivmod__, __rfloordiv__, __rlshift__, __rmatmul__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rsub__, __rtruediv__, __rxor__
Example
The __radd__ magic method is defined as below. The others follow the same pattern.
def __radd__(self, other):
return type(self)(other) + self
Installation
To install scaevola, you can use pip. Open your terminal and run:
pip install scaevola
License
This project is licensed under the MIT License.
Links
Credits
Author: Johannes
Thank you for using scaevola!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scaevola-1.0.9.tar.gz
(3.8 kB
view hashes)