Skip to content

Descriptor HowTo: Sync the error-messages with the C code. Add tests.#112403

Merged
rhettinger merged 2 commits into
python:mainfrom
rhettinger:descr_howto_property
Nov 25, 2023
Merged

Descriptor HowTo: Sync the error-messages with the C code. Add tests.#112403
rhettinger merged 2 commits into
python:mainfrom
rhettinger:descr_howto_property

Conversation

@rhettinger

@rhettinger rhettinger commented Nov 25, 2023

Copy link
Copy Markdown
Contributor

With the addition of __set_name__, the error messages in property objects changed in Objects/descrobject.c.

Update these error messages to match.

Also, this code was missing tests.


📚 Documentation preview 📚: https://cpython-previews--112403.org.readthedocs.build/

@rhettinger rhettinger added docs Documentation in the Doc dir skip issue skip news needs backport to 3.12 only security fixes labels Nov 25, 2023
@miss-islington-app

Copy link
Copy Markdown

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 25, 2023
…pythongh-112403)

(cherry picked from commit f93a4ef)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-app

bedevere-app Bot commented Nov 25, 2023

Copy link
Copy Markdown

GH-112411 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Nov 25, 2023
@rhettinger rhettinger deleted the descr_howto_property branch November 25, 2023 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants