Lament: Import is not very smart.

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jul 14 05:03:41 CEST 2004


Lonnie Princehouse wrote:
> Suppose that you've a package named "foo" which contains module "bar".
>  Because you're careless, you've also put foo/ into your path...

The solution to that is not to be careless (i.e. don't
put overlapping entries into your path).

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg




More information about the Python-list mailing list