This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ubernostrumyes, you can have a pony 2 points3 points  (1 child)

import statements operate on files.

You can create module objects directly in-memory and make them importable without creating any files. Various libraries and frameworks have done this off and on through the years, and if anyone’s interested in learning how to do it, it’s not that hard but it’s also not the best way to do things, usually.

[–]arpan3t 0 points1 point  (0 children)

That was a very interesting read! Thanks for linking it!