The difference between "import package.module" and "from package import module"(about pymol)

Xiao Jianfeng fdu.xiaojf at gmail.com
Thu Dec 15 23:54:49 EST 2005


Hello,

In pymol I can use "from chempy import Atom" but "import chempy.Atom"
doesn't work.
It says,"ImportError: No module named Atom". What is going wrong ?

Thanks



More information about the Python-list mailing list