Message 208154 - Python tracker
Here is the patch for Python/marshal.c. A couple of issues: 1. I can not have bytes as argument. bytes: Py_buffer -> not possible So I changed it to byte. 2. I can not give default value, marshal.version, to argument. version: int(c_default="Py_MARSHAL_VERSION") = marshal.version -> not possible (unless I put "import marshal" in Tools/clinic/clinic.py). So I gave it a raw value, 2. version: int(c_default="Py_MARSHAL_VERSION") = 2