# 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`.
Raw data
{
"_id": null,
"home_page": "https://github.com/JelleZijlstra/inspect2",
"name": "inspect2",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "inspect inspection backport",
"author": "Jelle Zijlstra",
"author_email": "jelle.zijlstra@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/b1/00/0c87bf6d739e7d343c4c87263620bc8ab0550a08afc22302064db0df3730/inspect2-0.1.2.tar.gz",
"platform": "",
"description": "# inspect2\nA backport of the Python 3.6 inspect module to Python 2.7-3.5.\n\nThis module was based on the code of the inspect module and its tests in the Python 3.6 \nstandard library and modified to pass tests on earlier Python versions.\n\nI have tried to follow these rules in writing the code:\n- Minimize changes relative to the 3.6 source. This should make backporting of future \n changes easier.\n- No support for old-style classes. Python 2 is hard enough without them.\n- All functions should be available on all versions. `inspect2.iscoroutinefunction()` \n just always returns False on Python versions that don't have `async def`.\n\n\n",
"bugtrack_url": null,
"license": "PSF",
"summary": "Backport of the Python 3.6 inspect module to Python 2.7-3.5",
"version": "0.1.2",
"split_keywords": [
"inspect",
"inspection",
"backport"
],
"urls": [
{
"comment_text": "",
"digests": {
"md5": "ef78013d18942da7cb4110e283691822",
"sha256": "e8940b8de645e3533605d1a40d12b3541f1da4f784c305eb512212a8fb2db3d3"
},
"downloads": -1,
"filename": "inspect2-0.1.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "ef78013d18942da7cb4110e283691822",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 34540,
"upload_time": "2019-08-10T16:35:15",
"upload_time_iso_8601": "2019-08-10T16:35:15.135520Z",
"url": "https://files.pythonhosted.org/packages/6a/68/34c569e4a95bfa08113b3fd0fe0cd889612e5d29f5bfb1e63257b3211bc0/inspect2-0.1.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"md5": "c012223e6be4150a9fd667e234821f04",
"sha256": "4d27f1d036b2346a6ec7c6abf6b121dd2adab45c796ae45080d7988bed786d5e"
},
"downloads": -1,
"filename": "inspect2-0.1.2.tar.gz",
"has_sig": false,
"md5_digest": "c012223e6be4150a9fd667e234821f04",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 66251,
"upload_time": "2019-08-10T16:35:16",
"upload_time_iso_8601": "2019-08-10T16:35:16.753682Z",
"url": "https://files.pythonhosted.org/packages/b1/00/0c87bf6d739e7d343c4c87263620bc8ab0550a08afc22302064db0df3730/inspect2-0.1.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2019-08-10 16:35:16",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "JelleZijlstra",
"github_project": "inspect2",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"test_requirements": [
{
"name": "six",
"specs": []
}
],
"lcname": "inspect2"
}