Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-126273: added clinic docstrings to elementtree#126274

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
pan324 wants to merge6 commits intopython:main
base:main
Choose a base branch
Loading
frompan324:etreedocs

Conversation

pan324
Copy link
Contributor

@pan324pan324 commentedNov 1, 2024
edited by bedevere-appbot
Loading

@skirpichev
Copy link
Contributor

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/

pan324 and Eclips4 reacted with thumbs up emoji

@pan324
Copy link
ContributorAuthor

Thanks, will do that now.

@skirpichevskirpichev self-requested a reviewNovember 1, 2024 13:08
…6273.t_qOoH.rstCo-authored-by: Peter Bierma <zintensitydev@gmail.com>
Comment on lines +1259 to +1260
*path* is a string having either an element tag or an XPath,
*namespaces* is an optional mapping from namespace prefix to full name.
Copy link
Contributor

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 theArgument 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.
Copy link
Contributor

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.

Suggested change
Returnslistcontainingallmatchingelementsindocumentorder.
Returnalistcontainingallmatchingelementsindocumentorder.

@skirpichev

This comment was marked as resolved.

@ZeroIntensity

This comment was marked as resolved.

@skirpichev

This comment was marked as resolved.

Copy link
Contributor

@erlend-aaslanderlend-aasland left a comment

Choose a reason for hiding this comment

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

Normally we try to align the docstrings with the reference text in the documentation. In some places, this is already done (the added docstring is similar or identical to the reference docs), but in some places it differs significantly. If the reason for the deviation is that the docs are inaccurate, we should IMO fix them (first), and then align the added docstrings to the amended docs. Moreover, my previous round of review remarks have not been addressed yet.

@bedevere-app
Copy link

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phraseI have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

@skirpichevskirpichev removed their request for reviewNovember 14, 2024 06:43
@python-cla-bot
Copy link

The following commit authors need to sign the Contributor License Agreement:

CLA signed

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

@ZeroIntensityZeroIntensityZeroIntensity left review comments

@erlend-aaslanderlend-aaslanderlend-aasland requested changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@pan324@skirpichev@ZeroIntensity@erlend-aasland

[8]ページ先頭

©2009-2025 Movatter.jp