NB: relaxedecor
is currently under reconstruction. It is highly recommended to directly install from the git repo or the pre-release distributions.
Write relaxed decorator expressions in Python X.Y flavour, and let
relaxedecor
worry about back-port issues 🍺
Since PEP 614, Python introduced relaxed decorator expressions
syntax in version X.Y. For those who wish to use relaxed decorator expressions in their code, relaxedecor
provides an
intelligent, yet imperfect, solution of a backport compiler by replacing relaxed decorator expressions syntax with
old-fashioned syntax, which guarantees you to always write relaxed decorator expressions in Python X.Y flavour then
compile for compatibility later.
See documentation for usage and more details.
Contributions are very welcome, especially fixing bugs and providing test cases. Note that code must remain valid and reasonable.