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

Xiao Jianfeng fdu.xiaojf at gmail.com
Fri Dec 16 05:54:49 CET 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