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
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
pybpc
(formerly known aspython-babel
)f2format
poseur
relaxedecor
vermin
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83d2235a32aa3565ecc3d18af33db24b3defd69f7d4716a4ca39ee7668974828 |
|
MD5 | 557387986de303efd0cece5189d07ea3 |
|
BLAKE2b-256 | 9d6d9e35dad8d9042842cdf42b031c123d3726fe5fbf38d8454ffef20301f1ce |
File details
Details for the file george_walrus-0.1.5rc1-py3-none-any.whl
.
File metadata
- Download URL: george_walrus-0.1.5rc1-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd33f3bc3dc116cae9d236ff340e13dd89dd99a898d74de53e668e72889ebe03 |
|
MD5 | c9db0db7817f85de39953f97050f12fa |
|
BLAKE2b-256 | 418c9d1064f42acd151de88f7fb11029a7cfa595277e1b86281579a2068f4fc6 |