[issue9731] ABCMeta.register should verify that methods are present

2010-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: > Would it be useful to provide a separate function to perform the check, which > could be used by lint-style tools as well as automated tests? > > It would be great if every call to .register in the standard library had a > corresponding test that verified

[issue9731] ABCMeta.register should verify that methods are present

2010-09-01 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Would it be useful to provide a separate function to perform the check, which could be used by lint-style tools as well as automated tests? It would be great if every call to .register in the standard library had a corresponding test that verified that the

[issue9731] ABCMeta.register should verify that methods are present

2010-09-01 Thread Guido van Rossum
Guido van Rossum added the comment: That would be too hard-headed. A complaint I often hear about Interfaces in Java is that classes have a hard time if they choose not to implement a certain method. It also would not be enough -- there are tons of ways you would be able to satisfy such a che

[issue9731] ABCMeta.register should verify that methods are present

2010-09-01 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : In Issue 9212, I mused: > I sort of wonder if .register() should verify that the concrete class > provides all of the methods of the ABC. Éric Araujo suggested I open that as an issue for consideration. I have found a few bugs in the standard library wh