Skip to main content

++ 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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

incr-0.1.2-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file incr-0.1.2.tar.gz.

File metadata

  • Download URL: incr-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for incr-0.1.2.tar.gz
Algorithm Hash digest
SHA256 3d0a23e469d1884fbf7ce0f7d150e24929ee30df23e02015a25550cb8fc8f70b
MD5 3e22e932e86c7f4d3da12480ebe8932a
BLAKE2b-256 58a178600fc0b933e7d827592ff8f5601c580719112d44f7ebde7a44a7a93e5f

See more details on using hashes here.

File details

Details for the file incr-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: incr-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for incr-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e067a6357b40add5bb71077a4d9adef611a59fba54be23cc502d0a27ccce5e26
MD5 bce7f7759b5f8c55d36abafdbd24faac
BLAKE2b-256 d4fcb96a1561d92c075b4b5091b4bb51088e644a2157f0168a6a2e0d0bfa16e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page