[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files
Vajrasky Kok
report at bugs.python.org
Wed Jan 15 11:51:14 CET 2014
Vajrasky Kok added the comment:
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
----------
Added file: http://bugs.python.org/file33479/clinic_marshal.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20185>
_______________________________________
More information about the Python-bugs-list
mailing list