Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Docs: Use !r in __repr__ example#146273

Open
petersuttondev wants to merge 1 commit intopython:mainfrom
petersuttondev:patch-1
Open

Docs: Use !r in __repr__ example#146273
petersuttondev wants to merge 1 commit intopython:mainfrom
petersuttondev:patch-1

Conversation

@petersuttondev
Copy link

@petersuttondevpetersuttondev commentedMar 22, 2026
edited
Loading

Use!r in the__repr__ example in therepr() docs mainly avoid manual quoting and to help steer users away from patterns that lead security and correctness issues.


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

@python-cla-bot
Copy link

python-cla-botbot commentedMar 22, 2026
edited
Loading

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-appbedevere-appbot added docsDocumentation in the Doc dir skip news awaiting review labelsMar 22, 2026
@petersuttondevpetersuttondev changed the titleUse !r in __repr__ exampleDocs: Use !r in __repr__ exampleMar 22, 2026
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

awaiting reviewdocsDocumentation in the Doc dirskip issueskip news

Projects

Status: Todo

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@petersuttondev@StanFromIreland

[8]ページ先頭

©2009-2026 Movatter.jp