Module Import Systems
Comments discuss the design, problems, and features of module import mechanisms in programming languages like Python, including dynamic loading, lazy imports, runtime execution, side effects, and comparisons across languages.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Module imports (eg in Python) are another example.
What's the point of not importing a library/module? It's not like cheating or something.
ImportC has a functioning module system! It's a consequence of it being built alongside a D compiler.
What import system does not have these problems?
i dislike the import part. without writing the from part first you can't evaluate the import..
You miss the point - note the dynamic module loading of imports.
Even the way you import packages is kinda wack
You don't need to translate it -- you can import modules both ways just fine -- THAT's the killer feature.
importing is a _runtime_ operation: unless previously imported, the interpreter will go and import that module, executing that modules code. that can take a while. it will also bind a name in the current scope to the modules name, so... that might be considered pollution?
It's 2019 and people are still using languages where order of imports matters...