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 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
