I am still learning python, and after playing with pygame, I noticed that I am importing content into modules that I import, which I already imported.
import pygame
For example, I have several classes in a separate file, but I also have to import pygame into this file for them to work. Does it really import code twice? Will it slow down my program? Or it just extracts the same import from the cache, but if so, why should I import it again?
Is there something like (load) in lisp that just pulls in the code as if it were part of the main file?
thank
source
share