newbie architecture question

Aahz aahz at
Fri Dec 12 18:20:09 CET 2003

In article <brcg7c$t3c1 at>,
Joe Poniatowski <jponiato at> 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           <*>

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