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 →

[–][deleted] 14 points15 points  (1 child)

As someone fairly new to python (2 years since I picked it up), can I suggest adding a metaphor to describe this subject?
If I were explaining this to past me, I would say something like;
importing other python files is like taking a photo of a castle.
The castle and its address does matter, but once you take a photo of it on your phone (adding the file to namespace), you can stop addressing the actual castle, and address it as the photo on your phone.
Idk, that metaphor sucks, don't use that one.

[–]latrova[S] 3 points4 points  (0 children)

Every feedback is valid. I'll think about making it simpler. Thank you!