[Cython] More concerns over extern ctypedefs
Robert Bradshaw
robertwb at math.washington.edu
Wed Jul 23 09:45:12 CEST 2008
On Jul 20, 2008, at 5:12 PM, Greg Ewing wrote:
> Dag Sverre Seljebotn wrote:
>> Just realized that a dynamic typestring could be generated at module
>> load time, which should be perfectly unnoticeable. So this might
>> be the
>> way to go.
I like this idea. Alternatively, one could pass an actual long (say)
into the PyArg_ParseTupleAndKeywords parameter list, and then cast
the result, but I like your idea better.
> A simpler approach would be to disallow the use of
> typedefed types to declare arguments to Python functions,
> and require the use of explicit C types.
I fear this would be a step backwards in usability...
- Robert
More information about the Cython-dev
mailing list