Skip to content

gh-141984: Reword and reorganize the first part of Atoms docs#144117

Merged
encukou merged 5 commits intopython:mainfrom
encukou:expressions-atoms-1
Feb 18, 2026
Merged

gh-141984: Reword and reorganize the first part of Atoms docs#144117
encukou merged 5 commits intopython:mainfrom
encukou:expressions-atoms-1

Conversation

@encukou
Copy link
Member

@encukou encukou commented Jan 21, 2026

This freshens up Syntax Notes, Atoms introduction, Built-in constants, and Literals.
Identifiers and enclosed forms are left for a future PR.

References to mixed arithmetic are changed to link to the stdtypes documentation. In later passes I want to move the runtime semantics there; for now I want to make the “When a description of an arithmetic operator” note in the intro more correct.


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

encukou and others added 2 commits January 21, 2026 16:08
occurrence) may obtain the same object or a different object with the same
value.

.. admonition:: CPython implementation detail
Copy link
Member

Choose a reason for hiding this comment

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

Why not .. impl-detail::?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's hard to see where .. impl-detail:: ends, which is crucial in this case. The paragraph on Template strings logically follows this information, but is not an implementation detail any more.

Copy link
Member

Choose a reason for hiding this comment

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

I see, that makes sense. I wonder why .. impl-detail:: doesn’t create an admonition but rather just bold text...?

Copy link
Member Author

Choose a reason for hiding this comment

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

I assume it's to avoid the box, which would be too distracting for a few sentences.

encukou and others added 2 commits February 9, 2026 11:16
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

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

Two little notes but otherwise LGTM :-)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
@encukou encukou merged commit 112d8ac into python:main Feb 18, 2026
29 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Feb 18, 2026
@encukou encukou deleted the expressions-atoms-1 branch February 18, 2026 13:13
@encukou
Copy link
Member Author

encukou commented Feb 18, 2026

Thank you for the review!

@encukou encukou added the needs backport to 3.14 bugs and security fixes label Feb 18, 2026
@miss-islington-app
Copy link

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 18, 2026
…ythonGH-144117)

(cherry picked from commit 112d8ac)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
encukou added a commit that referenced this pull request Feb 18, 2026
…H-144117) (GH-144959)

(cherry picked from commit 112d8ac)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
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 needs backport to 3.14 bugs and security fixes skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants

Comments