En Wed, 12 May 2010 01:38:47 -0300, Hatem Nassrat <hnass...@gmail.com>
escribió:
1. To create a YajlContentHandler class that forces all sub-classers
to implement a certain set of methods. (Great, thats what ABC is for)
There is a certain set of mutually exclusive callbacks, i.e. if you
implement the first set you need not implement the second, and vice
versa, so my second requirement is:
2. Conditional Abstractness! if certain methods are not implemented
then be able to require some method to be implemented.
Mmm, can't you use two separate ABCs? Perhaps inheriting from a common
base.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list