importing other .py files

Jarek Zgoda jzgoda at gazeta.usun.pl
Sat Feb 14 02:23:51 EST 2004


Eric <thenew_ebryant at yahoo.com> pisze:

> I created a file called TwoFourNode.py that has two classes, a tree
> class and a node class.  in a tester file I want to build my 2-4 tree,
> but how do I import the TwoFourNode class?

Use import statement.

http://www.python.org/doc/current/tut/node8.html

-- 
Jarek Zgoda
http://jpa.berlios.de/



More information about the Python-list mailing list