newbie architecture question

Aahz aahz at pythoncraft.com
Fri Dec 12 12:20:09 EST 2003


In article <brcg7c$t3c1 at eccws12.dearborn.ford.com>,
Joe Poniatowski <jponiato at ford.nospambot.com> wrote:
>
>I wish to define a hierarchy of classes - something like book, chapter,
>page, where books are made of one or more chapters, and chapters
>consist of one or more pages.  Should the definitions be nested, or all
>at the module level with just the instantiations nested?

Class definitions should *NOT* be nested.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

Weinberg's Second Law: If builders built buildings the way programmers wrote 
programs, then the first woodpecker that came along would destroy civilization.




More information about the Python-list mailing list