This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Desc(object): | |
def __init__(self, msg): | |
self.msg = msg | |
def __get__(self, instance, owner=None): | |
return "{0}: {1}".format(self.typ, self.msg) | |
class NonDesc(Desc): | |
# non-data descriptor |