Skip to main content

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.

Credits

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)

Uploaded Source

Built Distribution

scaevola-1.0.9-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page