++ operator in python
Project description
requires python 3.6 or above.
tested in 3.8, 3.9 and 3.10
pip install -U incr
usage:
from incr import incr
@incr
def x():
i = 0
print(++i) # 1
print(i) # 1
++i
print(i) # 2
post-increment (i++
) is not supported because it's not a valid python syntax
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
incr-0.1.2.tar.gz
(4.2 kB
view hashes)
Built Distribution
incr-0.1.2-py3-none-any.whl
(5.1 kB
view hashes)