Skip to content

Backport compiler for Python 3.8 assignment expressions (walrus).

License

Notifications You must be signed in to change notification settings

george-kuanli-peng/walrus

 
 

Repository files navigation

🎁 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 🍺

  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

About

Backport compiler for Python 3.8 assignment expressions (walrus).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.5%
  • Roff 4.1%
  • Shell 1.9%
  • Makefile 0.5%