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.1.tar.gz (55.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: inspect2-0.1.1.tar.gz
  • Upload date:
  • Size: 55.5 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.1.tar.gz
Algorithm Hash digest
SHA256 6bc4efebab4b6bcbc1585625900ddca26de0664a80f9cd0f503476c0a005a7db
MD5 3bf2baf627a3f36f8c32eb3986a296dc
BLAKE2b-256 e9f85a64e729dd9a9d5564f1c0e0806f1afc3422bd213a58926cea2d13da396c

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