Skip to main content

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

installs

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

selfish-0.3.1.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

selfish-0.3.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file selfish-0.3.1.tar.gz.

File metadata

  • Download URL: selfish-0.3.1.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for selfish-0.3.1.tar.gz
Algorithm Hash digest
SHA256 59adc6eb5ca108b0833cc5bc4b59edcba9c33e8313c63737756d7f16d937ce0d
MD5 3188c6b032289a4d00ff56902f9ca48c
BLAKE2b-256 40a26b6d20f13dc73b8f2c039e1687194e8c30f6263e73da3ad57a2f48f6e0c5

See more details on using hashes here.

File details

Details for the file selfish-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: selfish-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for selfish-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b9d594991ce27018109ae075882c6af568463d0d9727cff51a6ef98beed8d418
MD5 9855f7c2ec7ce19e23fb09ae98e660b8
BLAKE2b-256 afc9646dfb53cca4d3c142a9471ac7dd2602cc9c4a22739ec7b4327b11e7ef5d

See more details on using hashes here.

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