@@ -349,7 +349,7 @@ APIs:
349
349
* On success, fill *view *, and return ``0 ``.
350
350
* On error, set an exception and return ``-1 ``.
351
351
352
- The export must be released by :c:func: `PyBuffer_Release `.
352
+ The * view * buffer must be released by :c:func: `PyBuffer_Release `.
353
353
The contents of the buffer are valid until they are released.
354
354
355
355
The buffer is read-only and must not be modified.
@@ -372,7 +372,8 @@ APIs:
372
372
373
373
*requested_formats * can be a single format or a bitwise combination of the
374
374
formats in the table above.
375
- On success, *\* format * will be set to a single one of the requested flags.
375
+ To determine the format that was selected for output, call
376
+ :c:func: `PyUnicode_GetBufferFormat `.
376
377
377
378
Note that future versions of Python may introduce additional formats.
378
379
@@ -383,7 +384,7 @@ APIs:
383
384
384
385
Get the format of the buffer *view *.
385
386
386
- * On success, set *\* result * to the corresponding `PyUnicode_FORMAT_* ` value
387
+ * On success, set *\* format * to the corresponding `` PyUnicode_FORMAT_* ` ` value
387
388
and return ``0 ``.
388
389
* On error, set an exception and return ``-1 ``.
389
390
@@ -394,7 +395,7 @@ APIs:
394
395
395
396
.. c :function :: PyObject* PyUnicode_Import (const void *data, Py_ssize_t nbytes, uint32_t format)
396
397
397
- Create a string object from a buffer in an “export format” .
398
+ Create a Unicode string object from a buffer in a supported format.
398
399
399
400
* Return a reference to a new string object on success.
400
401
* Set an exception and return ``NULL `` on error.
0 commit comments