Skip to content

Py_SIZE is not useful #10

@encukou

Description

@encukou

The meaning of a type's Py_SIZE (ob_size) depends entirely on the type. The interpreter generally sets it on allocation, but can't rely on the value afterwards.

  • Py_SIZE is not different from other instance data and doesn't really need special treatment
  • The interpreter doesn't know the size of a PyVarObject instance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions