[Tutor] using separate py files for classes
Chris Hare
chare at labr.net
Wed Nov 2 07:29:04 CET 2011
I would like to put each of my classes in separate files to make it easier to edit them and keep the various files as small as possible for editing purposes.
I have come across a couple of problems:
1. I have to use import statements like "from file import class" instead of "import file"
2. I have to include all of the import statements for things not found in the class file
Is this normal or am I doing something wrong?
Thanks!
Chris Hare
chare at labr.net
http://www.labr.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111102/08883f8a/attachment.html>
More information about the Tutor
mailing list