Documentation about PyUnicode_AsWideChar() function · Issue #113437 · python/cpython · GitHub
Skip to content

Documentation about PyUnicode_AsWideChar() function #113437

Description

@qqwqqw689

In file _winapi.c

We can see code:

size = PyUnicode_AsWideChar(key, NULL, 0);

Py_ssize_t PyUnicode_AsWideChar(PyObject *unicode, wchar_t *wstr, Py_ssize_t size)

But the doc say "Copies the Unicode Object contents into the wchar_t buffer w. At most size wchar_t characters are copied.".I think we miss the situation when size is 0.

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions