You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property 'area' accessed
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
print(container.area)
^^^^^^^^^^^^^^
AttributeError: 'Container' object has no attribute 'area'. Did you mean '.inner.area' instead of '.area'?
Expected would be to not execute the code. This does not happen when the Container class has a property suggested
Bug report
Bug description:
The new error messages for nested attributes will execute descriptors/property code
Modified example from the change log. Gave the property a side effect (print)
Output
Expected would be to not execute the code. This does not happen when the
Containerclass has a property suggestedPR incoming
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs