Skip to main content

Backport of the Python 3.6 inspect module to Python 2.7-3.5

Project description

inspect2

A backport of the Python 3.6 inspect module to Python 2.7-3.5.

This module was based on the code of the inspect module and its tests in the Python 3.6 standard library and modified to pass tests on earlier Python versions.

I have tried to follow these rules in writing the code:

  • Minimize changes relative to the 3.6 source. This should make backporting of future changes easier.
  • No support for old-style classes. Python 2 is hard enough without them.
  • All functions should be available on all versions. inspect2.iscoroutinefunction() just always returns False on Python versions that don't have async def.

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

inspect2-0.1.2.tar.gz (66.3 kB view details)

Uploaded Source

Built Distribution

inspect2-0.1.2-py2.py3-none-any.whl (34.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: inspect2-0.1.2.tar.gz
  • Upload date:
  • Size: 66.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.1

File hashes

Hashes for inspect2-0.1.2.tar.gz
Algorithm Hash digest
SHA256 4d27f1d036b2346a6ec7c6abf6b121dd2adab45c796ae45080d7988bed786d5e
MD5 c012223e6be4150a9fd667e234821f04
BLAKE2b-256 b1000c87bf6d739e7d343c4c87263620bc8ab0550a08afc22302064db0df3730

See more details on using hashes here.

Provenance

File details

Details for the file inspect2-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: inspect2-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.1

File hashes

Hashes for inspect2-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e8940b8de645e3533605d1a40d12b3541f1da4f784c305eb512212a8fb2db3d3
MD5 ef78013d18942da7cb4110e283691822
BLAKE2b-256 6a6834c569e4a95bfa08113b3fd0fe0cd889612e5d29f5bfb1e63257b3211bc0

See more details on using hashes here.

Provenance

Supported by

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