implicit self
Project description
selfish
Making 'self' implicit, because even Java did a better job at this.
Install
pip install selfish
Usage
@selfish
class Foo():
def __init__(val): self.val = val
def val(): return self.val
@classmethod
def klass(): return self
Foo(1).val()
> 1
Foo.klass()
> Foo
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
selfish-0.3.0.tar.gz
(3.3 kB
view hashes)