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

2005-12-16 Thread Ben Finney
Xiao Jianfeng [EMAIL PROTECTED] writes: 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 ? I would trust the error message first, and check your assumption. Is 'chempy' actually a package, containing

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

2005-12-15 Thread Xiao Jianfeng
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 -- http://mail.python.org/mailman/listinfo/python-list