Open
Description
Bug report
Bug description:
class A:
@property
def computed_a(self):
return 2
@property
def computed_b(self):
return 3
@computed_b.setter
def computed_b(self, val):
print('set!')
a = A()
a.computed_a = 12 # typo
When running this, I would expect to get AttributeError: ... Did you mean: 'computed_b'
, but I'm not getting a suggestion. I think it's because the AttributeError
that property.__set__
raises doesn't have .obj
and .name
set.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux