[issue9731] Add ABCMeta.has_methods and tests that use it

Raymond Hettinger report at bugs.python.org
Wed Sep 1 20:09:33 CEST 2010

Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

+1 for the basic idea.

It could use a better name, Sequence.has_methods(range) reads backwards to me.  Perhaps something like:  Sequence.implemented_by(range) or Sequence.verify_full_api(range) or some such.

Also, when the tests get added, they should go in the test file for the implementing class (like test_range for example.)

nosy: +rhettinger

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list