Daniel Urban <urban.dani...@gmail.com> added the comment:

Here is a patch, which adds a descriptor to classmethod and staticmethod.
Pseudocode:

__get__(self, inst, owner):
    if getattr(inst.callable, '__isabstractmethod__', False):
        return True
    return False

__set__(self, inst, value):
    inst.callable.__isabstractmethod__ = bool(value)

----------
keywords: +patch
Added file: http://bugs.python.org/file18510/issue5867.diff

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

Reply via email to