-
-
Notifications
You must be signed in to change notification settings - Fork 30.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-126273: added clinic docstrings to elementtree #126274
base: main
Are you sure you want to change the base?
Conversation
clinic/* files are autogenerated by Tools/clinic/clinic.py. You should modify instead clinic input - Modules/_elementtree.c in your case, I guess. See also: https://devguide.python.org/development-tools/clinic/ |
Thanks, will do that now. |
Misc/NEWS.d/next/Documentation/2024-11-01-12-35-32.gh-issue-126273.t_qOoH.rst
Outdated
Show resolved
Hide resolved
…6273.t_qOoH.rst Co-authored-by: Peter Bierma <[email protected]>
*path* is a string having either an element tag or an XPath, | ||
*namespaces* is an optional mapping from namespace prefix to full name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider using per-parameter docstrings here (see the Argument Clinic Howto for inspiration).
Consider this also for the rest of the PR.
*path* is a string having either an element tag or an XPath, | ||
*namespaces* is an optional mapping from namespace prefix to full name. | ||
Returns list containing all matching elements in document order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consistently use the imperative mood for reference prose. Ditto for the rest of the PR.
Returns list containing all matching elements in document order. | |
Return a list containing all matching elements in document order. |
xml.etree
C implementation. #126273