Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(43)

Unified Diff: Doc/c-api/bytes.rst

Issue 25270: codecs.escape_encode systemerror on empty byte string
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/test/test_codecs.py » ('j') | Lib/test/test_codecs.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/c-api/bytes.rst
+++ b/Doc/c-api/bytes.rst
@@ -193,10 +193,10 @@ called with a non-bytes parameter.
A way to resize a bytes object even though it is "immutable". Only use this
to build up a brand new bytes object; don't use this if the bytes may already
be known in other parts of the code. It is an error to call this function if
the refcount on the input bytes object is not one. Pass the address of an
existing bytes object as an lvalue (it may be written into), and the new size
desired. On success, *\*bytes* holds the resized bytes object and ``0`` is
returned; the address in *\*bytes* may differ from its input value. If the
reallocation fails, the original bytes object at *\*bytes* is deallocated,
- *\*bytes* is set to *NULL*, a memory exception is set, and ``-1`` is
+ *\*bytes* is set to *NULL*, :exc:`MemoryError` is set, and ``-1`` is
returned.
« no previous file with comments | « no previous file | Lib/test/test_codecs.py » ('j') | Lib/test/test_codecs.py » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+