Skip to content

Document lazy imports#42

Closed
johnslavik wants to merge 1 commit intoLazyImportsCabal:lazyfrom
johnslavik:update-lazy-docs
Closed

Document lazy imports#42
johnslavik wants to merge 1 commit intoLazyImportsCabal:lazyfrom
johnslavik:update-lazy-docs

Conversation

@johnslavik
Copy link

@johnslavik johnslavik commented Dec 18, 2025

Very much work in progress (took me 2 minutes, not everything is included and this likely has errors). I'll keep exploring different approaches here.

  • Add a section on lazy imports in the import system
  • Document __lazy_modules__
  • Document __lazy_import__
  • Document sys.lazy_modules -- waiting for Pablo's green light
  • Add a crossref to lazy imports in importlib's "implementing lazy imports"
  • Denote that types.LazyImportType cannot be accessed when _types is unavailable (types.LazyImportType can become types.ModuleType #43)

@johnslavik johnslavik closed this Dec 19, 2025
@johnslavik johnslavik reopened this Dec 19, 2025
@johnslavik johnslavik changed the title Document __lazy_modules__ and sys.lazy_modules Document __lazy_modules__ Dec 20, 2025
@johnslavik johnslavik changed the title Document __lazy_modules__ Document lazy imports Dec 20, 2025
@johnslavik
Copy link
Author

This didn't catch interest!

@johnslavik johnslavik closed this Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant