Guido van Rossum <[email protected]> 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 appropriate methods were defined. > That would prevent future oversights where methods are missing entirely.
Yeah, that makes sense. You could put those checks in the unittests. ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue9731> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
