[Cython] target language syntax of Cython: Py2.6 or Py3.0?
Stefan Behnel
stefan_ml at behnel.de
Thu Apr 17 07:21:54 CEST 2008
Hi,
Dag Sverre Seljebotn wrote:
>> I think this significantly impacts usability. For example, if I have
>> a function
>>
>> def foo(char* x):
>> ...
>>
> For this specific example, one could hypothetically do something like
>
> def foo(utf8charbuf x):
> ...
I could live with such syntactic sugar. UTF-8 is common enough to support it
this way.
But it has to be intuitively clear from the syntax that this is
a) a real char* that is compatible with any other char*, and
b) a UTF-8 encoded byte string that will only work when passing a unicode
string from Python.
If we can achieve both goals in one syntax, I'll be happy.
Stefan
More information about the Cython-dev
mailing list