Skip to content

Conversation

@Joshua-Ward1
Copy link
Contributor

@Joshua-Ward1 Joshua-Ward1 commented Dec 12, 2025

Summary

Fixes an inconsistency in the documentation for eval() where the parameter
was referred to as “expression” instead of “source”, which does not match
the function signature.

Rationale

The function signature and parameter description already use source.
Updating the prose ensures consistency and avoids confusion for readers.

Changes

  • Update Doc/library/functions.rst to consistently refer to the source
    parameter in the eval() documentation.

Testing

Not applicable — documentation-only change.

Related issue


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

@StanFromIreland
Copy link
Member

CC @JelleZijlstra (Since you merged 2770d5c)

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.

LGTM

@JelleZijlstra JelleZijlstra merged commit c865ab3 into python:main Dec 13, 2025
51 checks passed
@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Dec 13, 2025
@miss-islington-app
Copy link

Thanks @Joshua-Ward1 for the PR, and @JelleZijlstra for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 13, 2025
…onGH-142644)

(cherry picked from commit c865ab3)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 13, 2025
…onGH-142644)

(cherry picked from commit c865ab3)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
@bedevere-app
Copy link

bedevere-app bot commented Dec 13, 2025

GH-142669 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Dec 13, 2025
@bedevere-app
Copy link

bedevere-app bot commented Dec 13, 2025

GH-142670 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Dec 13, 2025
JelleZijlstra pushed a commit that referenced this pull request Dec 13, 2025
…142644) (#142670)

gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644)
(cherry picked from commit c865ab3)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
JelleZijlstra pushed a commit that referenced this pull request Dec 13, 2025
…142644) (#142669)

gh-142568: Fix eval() docs to use 'source' parameter name (GH-142644)
(cherry picked from commit c865ab3)

Co-authored-by: Joshua Ward <joshie@flewognetworks.wales>
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 news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants