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.5.tar.gz (20.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file george_walrus-0.1.5.tar.gz.

File metadata

  • Download URL: george_walrus-0.1.5.tar.gz
  • Upload date:
  • Size: 20.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for george_walrus-0.1.5.tar.gz
Algorithm Hash digest
SHA256 49df23d63ee05e98301529b48609facb9f747f9aeaf873cadc3a6a64fc32fa02
MD5 47a5a7b89a759e04d86b3f224e731028
BLAKE2b-256 11ebbcee18daca19a1b0ce220106863820b4c8da1293567b50dfc097e562e394

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for george_walrus-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 33a12e254275dbd0150b3b812e7a5150213fc92acfb9c237391a67a5677e9737
MD5 35e92e09ff8a252ce96ae572a1db58e9
BLAKE2b-256 911bab1138cd9d85cb985bc6e35eb9084a536b2cfcc23f51e391100a316a2d49

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