Back-port compiler for Python 3.8 positional-only parameter syntax.


Keywords
positional-only, parameters, back-port, compiler, backport, pybpc
License
MIT
Install
pip install poseur==0.4.3

Documentation

NB: poseur is currently under reconstruction. It is highly recommended to directly install from the git repo or the pre-release distributions.


poseur

PyPI - Downloads PyPI - Version PyPI - Python Version

GitHub Actions - Status Codecov - Coverage Documentation Status

Write positional-only parameters in Python 3.8 flavour, and let poseur worry about back-port issues 🍺

  Since PEP 570, Python introduced positional-only parameters syntax in version 3.8. For those who wish to use positional-only parameters in their code, poseur provides an intelligent, yet imperfect, solution of a backport compiler by replacing positional-only parameters syntax with old-fashioned syntax, which guarantees you to always write positional-only parameters 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