from package import * without overwriting similarly named functions?

Fernando H. Sanches fernandohsanches at gmail.com
Sat Oct 25 13:24:19 EDT 2008


Also, remember that since the latter functions will always overwrite
the first, you can just reverse the order of the imports:

from package2 import *
from package1 import *

This should preserve the functions of package1 over the other ones.



More information about the Python-list mailing list