PyUnicodeUCS4_FromUnicode

Create a Unicode Object from the Py_UNICODE buffer u of the given size.

u may be NULL which causes the contents to be undefined. It is the user's responsibility to fill in the needed data afterwards. Note that modifying the Unicode object contents after construction is only allowed if u was set to NULL.

The buffer is copied into the new object. */ /// Availability: >= 2.

  1. PyObject* PyUnicodeUCS4_FromUnicode(Py_UNICODE* u, Py_ssize_t size)
    version(Python_2_6_Or_Later)
    PyUnicodeUCS4_FromUnicode
  2. alias PyUnicode_FromUnicode = PyUnicodeUCS4_FromUnicode

Meta