[issue28316] descriptor and repr get into conflict

2016-09-29 Thread Benjamin Peterson
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

[issue28316] descriptor and repr get into conflict

2016-09-29 Thread Sabine Maennel
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