Cross-reference 'import' in a class hierarchy

Erik Max Francis max at alcyone.com
Sun Apr 6 21:22:35 EDT 2003


Ben Finney wrote:

> In ork.py I want:
> 
>     import eek

If the toplevel package is put in a place where Python can find it, then

	import monty.foo.eek

or

	from monty.foo import eek

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Sit loosely in the saddle of life.
\__/ Robert Louis Stevenson
    Maths reference / http://www.alcyone.com/max/reference/maths/
 A mathematics reference.




More information about the Python-list mailing list