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

Appearance settings

Clarify one-item tuple #114745

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2024
Merged

Clarify one-item tuple #114745

merged 2 commits into from
Jan 30, 2024

Conversation

terryjreedy
Copy link
Member

@terryjreedy terryjreedy commented Jan 30, 2024

A 'single tuple' means 'one tuple, of whatever length.

A 'single tuple' means 'one typle, of whatever length.
@terryjreedy terryjreedy added docs Documentation in the Doc dir skip issue skip news needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Jan 30, 2024
@terryjreedy terryjreedy self-assigned this Jan 30, 2024
Copy link
Contributor

@hauntsaninja hauntsaninja 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!

(preexisting, but singleton is a little overloaded...)

@terryjreedy
Copy link
Member Author

terryjreedy commented Jan 30, 2024

To me, a singleton is a class with one instance, like <nonetype>, so I would not mind deleting it. But the tutorial has singleton = 'hello', and I suspect Guido wrote the sentence.

@hugovk hugovk changed the title <PR> Clarify one-item tuple Clarify one-item tuple Jan 30, 2024
Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

I agree with @hauntsaninja -- I'd remove the phrase (a.k.a. a *singleton*) (I don't think it really adds any clarity). But other than that, looks good :)

@terryjreedy
Copy link
Member Author

Agreed. The sentence flows better without the parenthetical 'singleton' comment.

@terryjreedy terryjreedy enabled auto-merge (squash) January 30, 2024 18:37
@terryjreedy terryjreedy merged commit a1332a9 into python:main Jan 30, 2024
@miss-islington-app
Copy link

Thanks @terryjreedy for the PR 🌮🎉.. 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 request Jan 30, 2024
A 'single tuple' means 'one typle, of whatever length.
Remove the unneeded and slight distracting parenthetical 'singleton' comment.
(cherry picked from commit a1332a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app
Copy link

bedevere-app bot commented Jan 30, 2024

GH-114757 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 Jan 30, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jan 30, 2024
A 'single tuple' means 'one typle, of whatever length.
Remove the unneeded and slight distracting parenthetical 'singleton' comment.
(cherry picked from commit a1332a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
@bedevere-app
Copy link

bedevere-app bot commented Jan 30, 2024

GH-114758 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Jan 30, 2024
@terryjreedy terryjreedy deleted the one-tuple branch January 30, 2024 18:41
terryjreedy added a commit that referenced this pull request Jan 30, 2024
A 'single tuple' means 'one tuple, of whatever length.
Remove the unneeded and slightly distracting parenthetical 'singleton' comment.
(cherry picked from commit a1332a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
terryjreedy added a commit that referenced this pull request Jan 30, 2024
A 'single tuple' means 'one tuple, of whatever length.
Remove the unneeded and slightly distracting parenthetical 'singleton' comment.
(cherry picked from commit a1332a9)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
aisk pushed a commit to aisk/cpython that referenced this pull request Feb 11, 2024
A 'single tuple' means 'one typle, of whatever length.
Remove the unneeded and slight distracting parenthetical 'singleton' comment.
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.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.