hgdemandimport - demandimport - automatic demand-loading of modules
| Use Case | Command | Description |
|---|---|---|
| Enable demandimport | from hgdemandimport import enable; enable() | Activate automatic demand-loading of modules |
| Check ignored modules | from hgdemandimport import IGNORES; print(IGNORES) | List modules excluded from demandimport |
| Inspect absolute_import feature | from hgdemandimport import absolute_import; print(absolute_import) | View the absolute import feature flag |
demandimportpy2demandimportpy3tracingdemandimportenable()IGNORES = {'__builtin__', '__future__', '__main__', '_ast', '_hashlib', ...} – set of modules to ignore during demandimportabsolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), ...) – feature flag for absolute import behavior/usr/lib/python3/dist-packages/hgdemandimport/__init__.py
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 11:15 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format