This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author stutzbach
Recipients benjamin.peterson, eric.araujo, gvanrossum, stutzbach
Date 2010-09-01.15:31:14
SpamBayes Score 0.0016081821
Marked as misclassified No
Message-id <1283355077.18.0.617238375857.issue9731@psf.upfronthosting.co.za>
In-reply-to
Content
Re-opening and re-titling the issue to that effect.

Proposed syntax and usage:

# in Lib/abc.py
class ABCMeta(type):
    # ...

    def has_methods(cls, subclass):
        "Returns True iff subclass implements the appropriate methods"
        # ...

Usage within the unit tests:

# In Lib/test/test_collections.py
    def test_methods(self):
        self.assertTrue(Sequence.has_methods(range))
        self.assertTrue(MutableSet.has_methods(set))
        # ... and many more
History
Date User Action Args
2010-09-01 15:31:17stutzbachsetrecipients: + stutzbach, gvanrossum, benjamin.peterson, eric.araujo
2010-09-01 15:31:17stutzbachsetmessageid: <1283355077.18.0.617238375857.issue9731@psf.upfronthosting.co.za>
2010-09-01 15:31:14stutzbachlinkissue9731 messages
2010-09-01 15:31:14stutzbachcreate