Skip to main content

Backport compiler for Python 3.8 assignment expressions.

Project description

🎁 This repo is forked from https://github.com/pybpc/walrus for publishing their latest work on PyPi, since the PyPi has not been updated long. Thanks the original authors for their excellent work to support the walrus operator on early Python versions.

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

george-walrus-0.1.5rc1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

george_walrus-0.1.5rc1-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file george-walrus-0.1.5rc1.tar.gz.

File metadata

  • Download URL: george-walrus-0.1.5rc1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for george-walrus-0.1.5rc1.tar.gz
Algorithm Hash digest
SHA256 83d2235a32aa3565ecc3d18af33db24b3defd69f7d4716a4ca39ee7668974828
MD5 557387986de303efd0cece5189d07ea3
BLAKE2b-256 9d6d9e35dad8d9042842cdf42b031c123d3726fe5fbf38d8454ffef20301f1ce

See more details on using hashes here.

File details

Details for the file george_walrus-0.1.5rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for george_walrus-0.1.5rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd33f3bc3dc116cae9d236ff340e13dd89dd99a898d74de53e668e72889ebe03
MD5 c9db0db7817f85de39953f97050f12fa
BLAKE2b-256 418c9d1064f42acd151de88f7fb11029a7cfa595277e1b86281579a2068f4fc6

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