[issue20226] Argument Clinic: support for simple expressions?
Serhiy Storchaka
report at bugs.python.org
Thu Jan 16 10:29:17 CET 2014
Serhiy Storchaka added the comment:
Excellent! I'm rewriting the zlib module and the code becomes much cleaner with this patch.
There is one problem left -- Py_buffer doesn't support default value at all.
Such code
/*[clinic input]
zlib.compressobj
zdict: Py_buffer = unspecified
[clinic start generated code]*/
produces error:
When you specify a named constant ('unspecified') as your default value,
you MUST specify a valid c_default.
But this code
/*[clinic input]
zlib.compressobj
zdict: Py_buffer(c_default="{NULL, NULL}") = unspecified
[clinic start generated code]*/
produces error too:
The only legal default value for Py_buffer is None.
And specifying c_default=None returns first error.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20226>
_______________________________________
More information about the Python-bugs-list
mailing list