Remix.run Logo
markrages 3 days ago

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

andrewmcwatters 3 days ago | parent | next [-]

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 days ago | parent | prev [-]

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

2 days ago | parent | next [-]
[deleted]
markrages 3 days ago | parent | prev [-]

"defining them right before the dependency is actually used"