logoalt Hacker News

stingraycharlestoday at 12:20 PM3 repliesview on HN

> Python is such a weird language. Lazy imports are a bandaid for AI code base monstrosities with 1000 imports

Just because you don’t like a feature doesn’t mean it’s because of AI and bad code.


Replies

xtajvtoday at 2:24 PM

Too much syntactic sugar causes cancer of the semicolon.

sigmoid10today at 12:25 PM

I think this is just a natural consequence of an easy-to-use package system. The exact same story as with node. If you don't want lots of imports, don't make it so damn easy to pile them into projects. I'm frankly surprised we still see so few supply chain attacks, even though they picked up their cadence dramatically.

show 3 replies
tremontoday at 2:28 PM

True, but this is yet another code path that isn't exercised until specific conditions happen. That means even more latent application behaviour can go undetected by unit testing and security profiling until the moon is in the right phase, which is a boon for submarine attacks.