[Python-Dev] [Python-checkins] peps: New DSL syntax and slightly changed semantics for the Argument Clinic DSL.
stefan at bytereef.org
Mon Mar 18 11:13:11 CET 2013
Larry Hastings <larry at hastings.org> wrote:
> So I hope that at least converters can be declared statically in a header
> file, like I suggested in PEP 437.
> The Argument Clinic prototype is written in Python; I don't know how "declared
> static in a header file" applies to a Python implementation. Currently the
> converters are declared directly in clinic.py, somewhere in the middle.
It applies in the same way to a Python implementation as declaring the
DSL comment blocks in a C file applies to a Python implementation. This
is exactly the same.
1) I think that third party tools should be able to extract *all* required
information from the DSL only.
2) After writing a new custom converter, I'd rather edit a header file and
not the preprocessor source.
3) Likewise, I'd rather edit a header file than inserting a magic [python]
block into the C source that registers the required information with
the preprocessor in a completely implementation defined way.
> The example in posixmodule.c takes up a lot of space and from the perspective
> of auditing the effects it's a little like following a longjmp.
> I got strong feedback that I needed more examples. That was the logical place
> for them. Can you suggest a better spot, or spots?
I'm concerned about the whole concept (see above).
More information about the Python-Dev