Skip to content

gh-148942: Docs: Clarify that exec() accepts bytes-like objects#148943

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

gh-148942: Docs: Clarify that exec() accepts bytes-like objects#148943
goroshirow wants to merge 1 commit intopython:mainfrom
goroshirow:patch-1

Conversation

@goroshirow
Copy link
Copy Markdown

@goroshirow goroshirow commented Apr 24, 2026

Update the documentation for exec() to explicitly state that source can be a bytes-like object. This matches the actual implementation and restores clarity. Also updated the subsequent sentence to maintain logical consistency.


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

Update the documentation for `exec()` to explicitly state that `source` can be a bytes-like object.
This matches the actual implementation and restores clarity.
Also updated the subsequent sentence to maintain logical consistency.
@python-cla-bot
Copy link
Copy Markdown

python-cla-bot Bot commented Apr 24, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review docs Documentation in the Doc dir skip news

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant