Elektrine lite

← Feed

@christophehenry@mastodon.social

Post #1157622

2026-03-27 15:42 UTC

The story of Python's lazy imports: why it took three years and two attempts https://techlife.blog/posts/the-story-of-pythons-lazy-imports-why-it-took-three-years-and-two-attempts/ Oh that's good news, especially for Django developers as it is not rare to come across circular imports and resort to locally import. #programing #Python #Django

Replies (1)

  • I'm not fond of introducing a new keyword as it can often clash with existing codebases and especially since this one is highly specific. But this was designed by people far more competent that me so let's trust. Furthermore, it opens the possibility of using for lazy initialization in the future, a bit like what Kotlin proposes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/lazy.html. #programing #Python #Django

    Open ##4232609