kann man im Descriptor herausfinden, an welches Attribut ein Descriptor gebunden ist?
Code: Alles auswählen
class String(object):
def __get__(self, instance, owner):
pass
class C(object):
foo = String()
Gruss
Frank
Code: Alles auswählen
class String(object):
def __get__(self, instance, owner):
pass
class C(object):
foo = String()