top | item 45801523

(no title)

markrages | 3 months ago

You have always been able to do the same thing in Python. This PEP isn't needed for that functionality.

discuss

order

andrewmcwatters|3 months ago

Yeah, I'm aware the same behavior is available, but this proposal creates a call trigger on the dependency which requires far less analysis on larger projects to understand where the import needs to be moved to.

You have to create wrappers in languages like JavaScript, Lua, Python, etc. to create the same behavior.

skywhopper|3 months ago

You can declare imports at the beginning of a program that don’t load until they are used?

markrages|3 months ago

"defining them right before the dependency is actually used"