[Python-3000] Should ABCMeta.register() do validation and emit warnings

Fred Drake fdrake at acm.org
Thu Feb 7 21:46:34 CET 2008


On Feb 7, 2008, at 3:34 PM, Greg Ewing wrote:
> Or maybe this is a task for pylint?


Maybe a lint tool could help, but it's not unusual for this to be  
relevant only for specific instances, not necessarily all instances.   
Certainly with zope.interface, you can create objects that provide a  
particular interface (and are recognized as providing it) without it  
being tied to their class.

This is an important strength of the zope.interface module.  Since  
it's entirely dependent on the dynamic behavior of the application, a  
lint tool will probably have a hard time with that.


   -Fred

-- 
Fred Drake   <fdrake at acm.org>






More information about the Python-3000 mailing list