Skip to main content

Backport compiler for Python 3.8 assignment expressions.

Project description

NB: walrus is currently under reconstruction. It is highly recommended to directly install from the git repo or the pre-release distributions.


walrus

PyPI - Downloads PyPI - Version PyPI - Python Version

GitHub Actions - Status Codecov - Coverage Documentation Status

Write assignment expressions in Python 3.8 flavour, and let walrus worry about back-port issues :beer:

  Since PEP 572, Python introduced assignment expressions syntax in version 3.8. For those who wish to use assignment expressions in their code, walrus provides an intelligent, yet imperfect, solution of a backport compiler by replacing assignment expressions syntax with old-fashioned syntax, which guarantees you to always write assignment expressions in Python 3.8 flavour then compile for compatibility later.

Documentation

  See documentation for usage and more details.

Contribution

  Contributions are very welcome, especially fixing bugs and providing test cases. Note that code must remain valid and reasonable.

See Also

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

bpc-walrus-0.1.5.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

bpc_walrus-0.1.5-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file bpc-walrus-0.1.5.tar.gz.

File metadata

  • Download URL: bpc-walrus-0.1.5.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for bpc-walrus-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c5c1d3618f47c2d310cd8b22d984120106e235656a28ba5a1f8a045a4b5eb40d
MD5 40cb2051fd2c5e199e935646dfb42e6e
BLAKE2b-256 87936135fe910c5b924a3978af50d772bfa5b96298109c77a40b983d52e878f5

See more details on using hashes here.

File details

Details for the file bpc_walrus-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: bpc_walrus-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for bpc_walrus-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc78afb901a9bc39ab9e88051f83e3716d65ea45b55cb7f0b9018497382050b0
MD5 6796fbdde9048023eaf1112d88bdf4c8
BLAKE2b-256 7212bd71b12f1c3d2c9c7d4a4bedc0144b3ad89d6e300cc0ffce3ebaf68553da

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