Re: Writing python module in C: wchar_t or Py_UNICODE?

2007-03-17 Thread Yury
Carsten Haese wrote: > > You should familiarize yourself with the Python/C API documentation. It > contains the answers to all the above questions. > > http://docs.python.org/api/arg-parsing.html says this about the "u" > format character: "a pointer to the existing Unicode data is stored into > t

Writing python module in C: wchar_t or Py_UNICODE?

2007-03-16 Thread Yury
I am new to python and programming generally, but someday it is time to start :) I am writing a python module in C and have a question about multibyte character strings in python<=>C. I want a C function which takes a string as argument from python script: static PyObject * connect_to_server(PyObj