_PyUnicode_AsDefaultEncodedString

Return a Python string holding the default encoded value of the Unicode object.

The resulting string is cached in the Unicode object for subsequent usage by this function. The cached version is needed to implement the character buffer interface and will live (at least) as long as the Unicode object itself.

The refcount of the string is *not* incremented.

_*** Exported for internal use by the interpreter only !!! ***

  1. PyObject* _PyUnicode_AsDefaultEncodedString(PyObject*, const(char)*)
    version(Python_3_3_Or_Later)
    _PyUnicode_AsDefaultEncodedString
    (
    ,
    const(char)*
    )
  2. alias _PyUnicode_AsDefaultEncodedString = _PyUnicodeUCS2_AsDefaultEncodedString
  3. alias _PyUnicode_AsDefaultEncodedString = _PyUnicodeUCS4_AsDefaultEncodedString

Meta