By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

importing other .py files

P: n/a
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?
Jul 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Eric <th************@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/
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.