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`.
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
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
inspect2-0.1-py2.py3-none-any.whl
(31.5 kB
view hashes)
Close
Hashes for inspect2-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 462122b25221c419745c630fe9efd2ddacf0198b6e092c2b59d60270e9083e58 |
|
MD5 | 3983a3b40b7280e9ffb43bebd9b6dfa4 |
|
BLAKE2b-256 | 7227c979524f27502080ab84833a6a5a8264f3cac4d7aa982ee67cf50842a5ab |