[Python] Is "type" a keyword

Discussão em 'Python' iniciado por Stack, Maio 10, 2025.

  1. Stack

    Stack Membro Participativo

    When I read the Python C API Reference Manual, it points to below from https://docs.python.org/3/c-api/type.html#c.PyType_Type


    type PyTypeObject

    Part of the Limited API (as an opaque struct).

    The C structure of the objects used to describe built-in types.
    ​

    I wonder is "type" from "type PyTypeObject" a keyword of C, I only know there is typedef in C, is it an alias for "struct" in C, I did not find such alias for struct in C. Where does it come from ?

    Continue reading...

Compartilhe esta Página