mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Fix Unicode doc and replace use of macro with PyMem_New function (GH-94088)
This commit is contained in:
parent
03da5d0f5b
commit
70068b9336
2 changed files with 2 additions and 2 deletions
|
|
@ -819,7 +819,7 @@ wchar_t Support
|
|||
most C functions. If *size* is ``NULL`` and the :c:type:`wchar_t*` string
|
||||
contains null characters a :exc:`ValueError` is raised.
|
||||
|
||||
Returns a buffer allocated by :c:func:`PyMem_Alloc` (use
|
||||
Returns a buffer allocated by :c:func:`PyMem_New` (use
|
||||
:c:func:`PyMem_Free` to free it) on success. On error, returns ``NULL``
|
||||
and *\*size* is undefined. Raises a :exc:`MemoryError` if memory allocation
|
||||
is failed.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue