Daniel Urban added the comment:

I like the 3rd alternative the most. It seems to me, that __abstractmethods__ 
is currently an undocumented implementation detail of ABCs. The 1st alternative 
would cause every type to have an empty __abstractmethods__ (which is 
technically correct, but probably not very useful). It seems to me that the 2nd 
alternative would not help very much in the original problem mentioned in 
issue10006 (automatically looking up every name found in dir). So I think, that 
the best would be to fix type.__dir__ this way. (Although, if we really want to 
document and use __abstractmethods__ on every type, then of course we should do 
the 1st alternative.)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19022>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to