Skip to main content

UNKNOWN

Project description

## Also
Ever had lots of methods that do the same thing?!
You want to set them to the same thing but dont want to do something lame like
```python
def method(self):
pass

othermethod = method
```

Rather you want to do it with style like

```python
@also('othermethod')
def method(self):
pass
```

Then do I have a solution for you!

## Installation
```
pip install also
```

## Usage
```python
from also import also, AlsoMetaClass

class Foo:
__metaclass__ = AlsoMetaClass

@also('getThing')
@also('get_thing')
def getthing(self):
return 'go bears'

foo = Foo()
assert (foo.getthing() == foo.get_thing() ==
foo.getThing() == 'go bears')
```

Project details


Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
also-0.0.2.tar.gz (1.3 kB) Copy SHA256 hash SHA256 Source None Aug 30, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page