Python++ is a transpiled superset of Python 3 that aims to address several commonly complained about aspects of Python by implementing the following features:
- Addition of tail call optimization for self-recursive functions
- Immutable default arguments by default
- Object deep copy by default when using the * operator
- Addition of increment (++) and decrement (--) operators
The easiest way to install Python++ is using pip, you can install from PyPI using the following command:
$ pip install python-plus-plus
Alternatively, you can install from source:
$ git clone https://github.com/python-plus-plus/python-plus-plus.git
$ cd python-plus-plus
$ python setup.py install
When provided with the path to a valid .ppp
source file, the Python++ transpiler will output a standard Python 3 compatible .py
file with the same name and execute the transpiled code in the Python interpreter:
$ ppp source.ppp