Container Objects Enforcing Contents

jim kraai jkraai at paypal.com
Thu Feb 14 00:28:33 CET 2002


Greetings,

I'm looking for suggestions on making container objects which must,
may, or must not allow particular kinds of container objects to be
added.

Any suggestions on a general approach for this?

The target app is not very exciting--an HTML generator that should be
able to guarantee that if no exceptions are raised, the HTML is valid.

TIA,

--jim



More information about the Python-list mailing list