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
walrusworry about back-port issues๐บ
โ 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)f2formatposeurrelaxedecorvermin