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

Replace the esoteric term 'datum' when describing dict comprehensions#106119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 1 commit intopython:mainfromnedbat:nedbat/no-key-datum
Jul 3, 2023

Conversation

nedbat
Copy link
Member

@nedbatnedbat commentedJun 26, 2023
edited by github-actionsbot
Loading

encukou reacted with thumbs up emoji
@bedevere-botbedevere-bot added awaiting review docsDocumentation in the Doc dir skip news labelsJun 26, 2023
@SnoopJ
Copy link
Contributor

SnoopJ commentedJun 26, 2023
edited
Loading

This PR originates from an IRC discussion in #python on Libera.chat wherein a user was confused about the mix-and-match usage ofkey/value andkey/datum in the official documentation.

Also worth considering as a potentially confusing ambiguity: there are several places in the docs that use the expressionkey value when referring to an object that is being used as a key.

Edit: Fun trivia: this language dates to the 1991 draft of the Language Reference, the term first appeared inf2612d1 by my reckoning.

Copy link
Member

@JelleZijlstraJelleZijlstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Looks good, thanks. "datum" is unnecessarily obscure.

I'll leave this open for some time in case others have comments.

@nedbatnedbatforce-pushed thenedbat/no-key-datum branch fromdbc8951 to979f6f8CompareJuly 3, 2023 01:37
@nedbat
Copy link
MemberAuthor

@JelleZijlstra thoughts?

@JelleZijlstraJelleZijlstra merged commit987b712 intopython:mainJul 3, 2023
@miss-islington
Copy link
Contributor

Thanks@nedbat for the PR, and@JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 3, 2023
…pythonGH-106119)(cherry picked from commit987b712)Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
@bedevere-bot
Copy link

GH-106348 is a backport of this pull request to the3.12 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.12only security fixes labelJul 3, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestJul 3, 2023
…pythonGH-106119)(cherry picked from commit987b712)Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
@bedevere-bot
Copy link

GH-106349 is a backport of this pull request to the3.11 branch.

@bedevere-botbedevere-bot removed the needs backport to 3.11only security fixes labelJul 3, 2023
JelleZijlstra pushed a commit that referenced this pull requestJul 3, 2023
…ensions (GH-106119) (#106348)Replace the esoteric term 'datum' when describing dict comprehensions (GH-106119)(cherry picked from commit987b712)Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
JelleZijlstra pushed a commit that referenced this pull requestJul 3, 2023
…ensions (GH-106119) (#106349)Replace the esoteric term 'datum' when describing dict comprehensions (GH-106119)(cherry picked from commit987b712)Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
carljm added a commit to carljm/cpython that referenced this pull requestJul 3, 2023
* main: (167 commits)pythongh-91053: make func watcher tests resilient to other func watchers (python#106286)pythongh-104050: Add more type hints to Argument Clinic DSLParser() (python#106354)pythongh-106359: Fix corner case bugs in Argument Clinic converter parser (python#106361)pythongh-104146: Remove unused attr 'parameter_indent' from clinic.DLParser (python#106358)pythongh-106320: Remove private _PyErr C API functions (python#106356)pythongh-104050: Annotate Argument Clinic DSLParser attributes (python#106357)pythongh-106320: Create pycore_modsupport.h header file (python#106355)pythongh-106320: Move _PyUnicodeWriter to the internal C API (python#106342)pythongh-61215: New mock to wait for multi-threaded events to happen (python#16094)  Document PYTHONSAFEPATH along side -P (python#106122)  Replace the esoteric term 'datum' when describing dict comprehensions (python#106119)pythongh-104050: Add more type hints to Argument Clinic DSLParser() (python#106343)pythongh-106320: _testcapi avoids private _PyUnicode_EqualToASCIIString() (python#106341)pythongh-106320: Add pycore_complexobject.h header file (python#106339)pythongh-106078: Move DecimalException to _decimal state (python#106301)pythongh-106320: Use _PyInterpreterState_GET() (python#106336)pythongh-106320: Remove private _PyInterpreterState functions (python#106335)pythongh-104922: Doc: add note about PY_SSIZE_T_CLEAN (python#106314)pythongh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (python#106329)pythongh-104922: remove PY_SSIZE_T_CLEAN (python#106315)  ...
@nedbatnedbat deleted the nedbat/no-key-datum branchJuly 3, 2023 19:48
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@JelleZijlstraJelleZijlstraJelleZijlstra approved these changes

Assignees

@JelleZijlstraJelleZijlstra

Labels
docsDocumentation in the Doc dirskip issueskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

5 participants
@nedbat@SnoopJ@miss-islington@bedevere-bot@JelleZijlstra

[8]ページ先頭

©2009-2025 Movatter.jp