Skip to content

Conversation

@Lakshya-Upadhyaya
Copy link
Contributor

@Lakshya-Upadhyaya Lakshya-Upadhyaya commented Nov 9, 2025

Fixes gh-140980

This adds documentation for the 0x10 bit flag (annotate) that was added to
SET_FUNCTION_ATTRIBUTE in #124566. The bit sets the annotate function for
the function object.


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

@bedevere-app bedevere-app bot added awaiting review docs Documentation in the Doc dir skip news labels Nov 9, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Nov 9, 2025
@picnixz picnixz changed the title Doc: Add SET_FUNCTION_ATTRIBUTE 0x10 (annotate) to dis documentation gh-141155: document SET_FUNCTION_ATTRIBUTE in dis Nov 9, 2025
@StanFromIreland StanFromIreland changed the title gh-141155: document SET_FUNCTION_ATTRIBUTE in dis gh-140980: document SET_FUNCTION_ATTRIBUTE in dis Nov 9, 2025
Comment on lines 1681 to 1682
Added ``0x10`` to indicate the annotate function for the function object.

Copy link
Member

Choose a reason for hiding this comment

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

Can you put two blank lines between the end the sentence and the next .. opcode::? (see other paragraphs to check how they are separated)

@Lakshya-Upadhyaya Lakshya-Upadhyaya force-pushed the document-set-function-attribute-16 branch from ae00464 to 38151bf Compare November 9, 2025 18:19
@picnixz picnixz added the needs backport to 3.14 bugs and security fixes label Nov 9, 2025
@picnixz picnixz changed the title gh-140980: document SET_FUNCTION_ATTRIBUTE in dis gh-140980: document SET_FUNCTION_ATTRIBUTE flag for annotate function Nov 9, 2025
@picnixz picnixz merged commit 6f20ea1 into python:main Nov 9, 2025
34 checks passed
@miss-islington-app
Copy link

Thanks @Lakshya-Upadhyaya for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs Nov 9, 2025
@picnixz
Copy link
Member

picnixz commented Nov 9, 2025

Thank you!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Nov 9, 2025
…` function (pythonGH-141306)

(cherry picked from commit 6f20ea1)

Co-authored-by: Lakshya Upadhyaya <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Nov 9, 2025

GH-141316 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 Nov 9, 2025
picnixz pushed a commit that referenced this pull request Nov 9, 2025
…e` function (GH-141306) (#141316)

gh-140980: document `SET_FUNCTION_ATTRIBUTE` flag for `annotate` function  (GH-141306)
(cherry picked from commit 6f20ea1)

Co-authored-by: Lakshya Upadhyaya <[email protected]>
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.

Missing documentation for SET_FUNCTION_ATTRIBUTE 16/0x10 (“annotate“)

2 participants