On Sat, Jul 31, 2010 at 12:34 AM, Michael Foord
<[email protected]> wrote:
> Explicit registration over implicit registration by subclassing is an
> interesting discussion, but I like the simplicity provided by just
> subclassing.

Note that ABCs are deliberately designed to let *users* choose to do
either. Subclassing gets you better implementation support (since you
pick up all the concrete method implementations "for free"), but you
can still use explicit registration if you have an existing class that
provides the API but isn't a subclass of the ABC.

Cheers,
Nick.

-- 
Nick Coghlan   |   [email protected]   |   Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to