Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by cjhanks

8 years ago

I have, and it actually works well (performance wise). The maintenance burden is a little higher.

2 comments

cjhanks

Reply

sli  8 years ago

A little Python preprocessor that lets you annotate your lazy modules sounds like a fun little toy project, actually. Not something I'd use for real, but it would be fun to build.

  • jsmeaton  8 years ago

    3.7 makes it easier to use dynamic imports. https://snarky.ca/lazy-importing-in-python-3-7/

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities