]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46730: Add more info to @property AttributeError messages (GH-31311)
authorAlex-Blade <44120047+Alex-Blade@users.noreply.github.com>
Wed, 16 Feb 2022 07:07:34 +0000 (10:07 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Feb 2022 07:07:34 +0000 (02:07 -0500)
commit0cb765b2cec9b020224af016a83bf35c45b71932
treee56baf1ed502d969431a3721d58bfb683d9eb705
parent4d8a515d193a4c9f3844704f974ddb870d7ee383
bpo-46730: Add more info to @property AttributeError messages (GH-31311)

On `obj.read_only_property = x`, raise `AttributeError: property 'read_only_property' of 'A' object has no setter`.
Doc/howto/descriptor.rst
Lib/test/test_property.py
Misc/ACKS
Misc/NEWS.d/next/Core and Builtins/2022-02-14-21-04-43.bpo-46730.rYJ1w5.rst [new file with mode: 0644]
Objects/descrobject.c