Skip to main content

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

Project description


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.

Files for inspect2, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size inspect2-0.1.2-py2.py3-none-any.whl (34.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size inspect2-0.1.2.tar.gz (66.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page