bpo-36763: Implement PyWideStringList_Insert() of PEP 587 (GH-15423)

This commit is contained in:
Victor Stinner 2019-08-23 16:57:54 +01:00 committed by GitHub
parent 8e76c45622
commit 3842f2997f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 13 deletions

View file

@ -72,8 +72,12 @@ PyWideStringList
.. c:function:: PyStatus PyWideStringList_Insert(PyWideStringList *list, Py_ssize_t index, const wchar_t *item)
Insert *item* into *list* at *index*. If *index* is greater than *list*
length, just append *item* to *list*.
Insert *item* into *list* at *index*.
If *index* is greater than or equal to *list* length, append *item* to
*list*.
*index* must be greater than or equal to 0.
Python must be preinitialized to call this function.