Skip to content

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

Description

@sobolevn

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:

#defineNUM_KEYWORDS 1
staticstruct {
PyGC_Head_this_is_not_used;
PyObject_VAR_HEADPyObject*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 :)

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dir

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions