FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-87771: Improve documentation of eval() by slateny · Pull Request #100003 · python/cpython · GitHub

/ cpython Public

gh-87771: Improve documentation of eval() - #100003

Closed
slateny wants to merge 5 commits into
python:mainfrom
slateny:s/87772
Closed

gh-87771: Improve documentation of eval()#100003
slateny wants to merge 5 commits into
python:mainfrom
slateny:s/87772

Conversation

slateny commented Dec 5, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

Clone of the eval section of #25039 with conflicts fixed and some changes in phrasing, but wording kept mostly the same.

See this for discussion on 'condition list' and why it was changed to 'expression input'.

https://docs.python.org/dev/library/functions.html#eval

Co-authored-by: Cong Ma cong.ma@obspm.fr

Comment thread Doc/library/functions.rst
environment where :func:`eval` is called. If only the *globals* argument is
provided, the local namespace defaults to *globals*.

Before evaluation, the special key ``"__builtins__"`` is searched for in the

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Not too certain about quoting the key, and perhaps it could be non-literal and just "builtins" instead, but I'll defer judgement here.

Comment thread Doc/library/functions.rst
Comment thread Doc/library/functions.rst Outdated
Comment thread Doc/library/functions.rst
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>

netlify Bot commented Dec 8, 2022
edited
Loading

Copy link
Copy Markdown

Deploy Preview for python-cpython-preview ready!

Name Link
🔨 Latest commit 3c90d9c
🔍 Latest deploy log https://app.netlify.com/sites/python-cpython-preview/deploys/6391921a69b80b0009bfd4a1
😎 Deploy Preview https://deploy-preview-100003--python-cpython-preview.netlify.app
📱 Preview on mobile Toggle QR Code...



Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Copy Markdown
Contributor

This has been superseded by #119235 and its follow-ups (the exec/eval docs have also been more generally updated for PEP 667, hence the conflicts on this PR)

Thanks for the efforts here, even though they ultimately weren't merged.

ncoghlan closed this Jul 16, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL