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

gh-153903: wrap_dll_function: copy doc, etc from wrapped stub by WardBrian · Pull Request #154495 · python/cpython · GitHub

Repository navigation

gh-153903: wrap_dll_function: copy doc, etc from wrapped stub - #154495

Merged
ZeroIntensity merged 2 commits into
python:mainfrom
WardBrian:wrap_dll_function-doc
Jul 23, 2026
Merged

ZeroIntensity merged 2 commits into
python:mainfrom
WardBrian:wrap_dll_function-doc

Conversation

WardBrian commented Jul 22, 2026 •
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Discussed #153903 (comment), it is a nice quality of life feature if docstrings from the user-written stub are also copied over.

This calls functools.update_wrapper, similar to the ctypes.util.struct decorator that calls functools.wraps

cc @ZeroIntensity

Comment thread Doc/library/ctypes.rst Outdated

python-cla-bot Bot commented Jul 23, 2026 •
edited
Loading

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33728964 | 📁 Comparing 9d59e7e against main (0ca0107)

  🔍 Preview build  

1 file changed
± library/ctypes.html

ZeroIntensity left a comment

Copy link
Copy Markdown
Member

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

LGTM

ZeroIntensity enabled auto-merge (squash) July 23, 2026 16:31
ZeroIntensity merged commit 2b4e062 into python:main Jul 23, 2026
54 checks passed
WardBrian deleted the wrap_dll_function-doc branch July 23, 2026 18:26
mbeijen pushed a commit to mbeijen/cpython that referenced this pull request Aug 14, 2026
…rap_dll_function` (pythonGH-154495)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL