68 words, 1 min read
β οΈ This post links to an external website. β οΈ
Python 3.15 adds lazy imports: a lazy keyword that puts off loading a module until the first time you use it. The import statement stays where it belongs, at the top of your file, but the work of running it moves to the moment something touches the moduleβs name. In this tutorial, youβll make a command-line tool start more than twice as fast without moving a single import.
continue reading onrealpython.com
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.