Benjamin Peterson added the comment:
This is no different than this simpler case:
class A:
def __init__(self, name):
print("init {!r}".format(self))
self.name = name
def __repr__(self):
return "I am {}".format(self.name)
The instance of A doesn't not have a name
New submission from Sabine Maennel:
I was working with descriptors and hit on an error, that I do not understand.
I attach a protocol of my interactive python session that will show you what
happened and the session is reproducible:
I had a class employing a descriptor:
class Descriptor(objec