PEP 757 – C API to import-export Python integers

struct PyLongWriter
A Python int writer instance.
The instance must be destroyed by PyLongWriter_Finish()

Is it correct? It’s not obvious for me from PEP’s text, when PyLongWriter_Discard should and should not been called.

1 Like