PyUnicode_FromOrdinal

Create a Unicode Object from the given Unicode code point ordinal.

The ordinal must be in range(0x10000) on narrow Python builds (UCS2), and range(0x110000) on wide builds (UCS4). A ValueError is raised in case it is not.

  1. PyObject* PyUnicode_FromOrdinal(int ordinal)
    version(Python_3_3_Or_Later)
    extern (C)
    PyUnicode_FromOrdinal
    ()
  2. alias PyUnicode_FromOrdinal = PyUnicodeUCS2_FromOrdinal
  3. alias PyUnicode_FromOrdinal = PyUnicodeUCS4_FromOrdinal

Meta