Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/encukou/zombie-imp
A particularly mischievous act of necromancy
https://github.com/encukou/zombie-imp
Last synced: 26 days ago
JSON representation
A particularly mischievous act of necromancy
- Host: GitHub
- URL: https://github.com/encukou/zombie-imp
- Owner: encukou
- License: other
- Created: 2023-06-26T09:49:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-29T08:46:42.000Z (9 months ago)
- Last Synced: 2024-10-03T02:26:16.190Z (about 1 month ago)
- Language: Python
- Homepage:
- Size: 25.4 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# zombie-imp
~~A particularly mischievous act of necromancy. That is,~~
A copy of the `imp` module that was removed in Python 3.12.Don't use this, it'll probably trick and bite you.
# Usage
Can be summoned by `import zombie_imp`.
On Python versions where `imp` was banished, reanimate it using `import imp`.
It promises (with a sneer) to be the same as before.Some functionality that was severed from `pkgutil` is interred
in `zombie_imp.pkgutil`, ready for reattachment:- `ImpImporter`
- `ImpLoader`# Development
You want to help it? Think you'll be rewarded?
Great! It loves gullible brains.Seriously, **run!**
Find a project that needs this and port *that* to `importlib`.## License
The code was snatched from CPython, and is available under CPython's license
(SPDX: `Python-2.0.1`).