GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — "Argument Clinic How-To" misses `generate_global_objects` step · Issue #97956 · python/cpython

"Argument Clinic How-To" misses generate_global_objects step #97956

New issue
Copy link
New issue
Copy link
Closed
Closed
"Argument Clinic How-To" misses generate_global_objects step#97956
Copy link
Assignees
sobolevn
Labels
docsDocumentation in the Doc dirDocumentation in the Doc dir

Description

@sobolevn
sobolevn
opened on Oct 6, 2022
Issue body actions

Documentation

Right now our How-To Clinic guide does not mention that it is required to run python Tools/scripts/generate_global_objects.py command to generate global objects used by _Py_ID(), like in here:

    #define NUM_KEYWORDS 1
    static struct {
        PyGC_Head _this_is_not_used;
        PyObject_VAR_HEAD
        PyObject *ob_item[NUM_KEYWORDS];
    } _kwtuple = {
        .ob_base = PyVarObject_HEAD_INIT(&PyTuple_Type, NUM_KEYWORDS)
        .ob_item = { &_Py_ID(only_keys), },   // <--- Here!
    };
    #undef NUM_KEYWORDS

With this command the build fails.
I will send a PR to update docs today.

CC @larryhastings :)

Activity

  1. sobolevn
    added
    docsDocumentation in the Doc dirDocumentation in the Doc dir
    on Oct 6, 2022
  2. sobolevn
    self-assigned this
    on Oct 6, 2022
  3. sobolevn
    added a commit that references this issue on Oct 6, 2022

    pythongh-97956: Mention `generate_global_objects.py` in `AC How-To`

    f130f74
  4. larryhastings commented on Oct 6, 2022

    @larryhastings
    larryhastings
    on Oct 6, 2022
    Contributor
    More actions

    generate_global_objects.py is new, Argument Clinic is many years older. It sounds like the generate_global_objects.py authors should have added this documentation when they added this new feature.

  5. ambv
    added a commit that references this issue on Oct 7, 2022

    gh-97956: Mention `generate_global_objects.py` in `AC How-To` (#97957)

    586cfb0
  6. carljm
    added a commit that references this issue on Oct 8, 2022

    Merge branch 'main' into typewatch

    27a4980
  7. mpage
    added a commit that references this issue on Oct 11, 2022

    pythongh-97956: Mention `generate_global_objects.py` in `AC How-To` (p…

    8bc17aa
  8. sobolevn commented on Oct 12, 2022

    @sobolevn
    sobolevn
    on Oct 12, 2022
    MemberAuthor
    More actions

    Done! ✅

  9. sobolevn
    closed this as completedon Oct 12, 2022
  10. erlend-aasland
    added a commit that references this issue on Sep 8, 2023

    python/cpython#97956: Mention `generate_global_objects.py` in `AC How…

    5e68687
  11. AA-Turner
    added a commit that references this issue on Sep 13, 2023

    python/cpython#97956: Mention `generate_global_objects.py` in `AC How…

    5f6ac54
  12. erlend-aasland
    added a commit that references this issue on Sep 26, 2023

    python/cpython#97956: Mention `generate_global_objects.py` in `AC How…

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

Metadata

Metadata

Assignees

  • @sobolevn
    sobolevn

Labels

docsDocumentation in the Doc dirDocumentation in the Doc dir

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.