PyUnicodeUCS2_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* PyUnicodeUCS2_FromOrdinal(int ordinal)
    version(Python_Unicode_UCS2)
    PyUnicodeUCS2_FromOrdinal
    ()
  2. alias PyUnicode_FromOrdinal = PyUnicodeUCS2_FromOrdinal

Meta