On Feb 6, 2008 5:17 PM, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > It's interesting that tuples could be registered as Sequences without having > all the requisite methods. Should the register() method to some sort of > validation that all public methods in the ABC are in the class/type being > registered?
I think the Zope/Twisted interfaces have gone here before. I believe they have a separate validation call which is typically only invoked in unittests. The validation can be pretty expensive, so running the validation each time the interpreter is started would just slow things down. I've just not yet written the validation code. :-) -- --Guido van Rossum (home page: http://www.python.org/~guido/) _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
