Visitar URL original
Some C struct members are not marked up in docs · Issue #97909 · python/cpython · GitHub
Skip to content

Some C struct members are not marked up in docs #97909

Description

@encukou

Activity

  1. encukou commented on Oct 12, 2022

    @encukou
    MemberAuthor

    Reserving for a student. Everyone else, please don't start on this issue this week.


    You will want to click “Show Source” on the page linked in the first comment. That will take you to the place you need to edit on GitHub.

    You will also want to read the Devguide, for info like how to build the documentation with your changes: https://devguide.python.org/documentation/start-documenting/

    An example of how members should be documented is in PyType_Spec: https://docs.python.org/3/c-api/type.html#c.PyType_Spec

  2. Johnny11502 commented on Oct 12, 2022

    @Johnny11502
    Contributor

    @encukou I would like to work on this issue. Thanks for the hint!

  3. Johnny11502 commented on Oct 14, 2022

    @Johnny11502
    Contributor

    @encukou Just to let you know, I did not forget about this issue and I have just been a bit busy at work this week. I will try and submit my PR tonight or tomorrow.

  4. Johnny11502 commented on Oct 14, 2022

    @Johnny11502
    Contributor

    @encukou I am a bit confused about what needs to be marked up as a member under PyMemberDef. I looked at PyType_Spec and saw how PyType_Spec.name and the members that follow were documented but I do not see what would need it for this issue. Would you please be able to specify the lines or text that needs to be corrected.

  5. encukou commented on Oct 17, 2022

    @encukou
    MemberAuthor

    The members (fields) are name, type, offset, etc. Currently they're defined in a table, so they don't show up when searching the docs for PyMemberDef.name (and when writing the docs, can't be linked using :c:member`PyMemberDef.name`).
    The table should be converted to entries for the individual members.

  6. Johnny11502 commented on Oct 17, 2022

    @Johnny11502
    Contributor

    Got it, thanks!

  7. added a commit that references this issue on Oct 19, 2022
  8. added a commit that references this issue on Oct 24, 2022
  9. changed the title [-]PyMemberDef members are not marked up[/-] [+]PyMemberDef & PyGetSetDef members are not marked up[/+] on Oct 24, 2022
  10. encukou commented on Oct 24, 2022

    @encukou
    MemberAuthor

    PyGetSetDef is in the same situation, let's use this issue for that as well.

  11. Johnny11502 commented on Oct 24, 2022

    @Johnny11502
    Contributor

    @encukou I can update the members of PyGetSetDef as well since it would pretty much be the same if you don't mind.

  12. encukou commented on Oct 24, 2022

    @encukou
    MemberAuthor

    Sounds good, thanks!

  13. 3 remaining items

  14. changed the title [-]PyMemberDef & PyGetSetDef members are not marked up[/-] [+]Some C struct members are not marked up in docs[/+] on Dec 6, 2022
  15. encukou commented on Dec 6, 2022

    @encukou
    MemberAuthor

    PyMethodDef could use the same treatment.

  16. reopened this on Dec 6, 2022
  17. ramvikrams commented on Dec 7, 2022

    @ramvikrams
    Contributor

    i'll do that

  18. added a commit that references this issue on Dec 17, 2022
  19. added 4 commits that reference this issue on Dec 17, 2022
  20. added a commit that references this issue on Dec 19, 2022
  21. hugovk commented on Jul 31, 2024

    @hugovk
    Member

    Triage: can this be closed?

  22. ZeroIntensity commented on Jan 28, 2025

    @ZeroIntensity
    Member

    I'm pretty confident that this is done.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions