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

Delta Between Two Patch Sets: Doc/c-api/bytes.rst

Issue 25270: codecs.escape_encode systemerror on empty byte string
Left Patch Set: Created 3 years, 6 months ago
Right Patch Set: Created 3 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/test/test_codecs.py » ('j') | Lib/test/test_codecs.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 .. highlightlang:: c 1 .. highlightlang:: c
2 2
3 .. _bytesobjects: 3 .. _bytesobjects:
4 4
5 Bytes Objects 5 Bytes Objects
6 ------------- 6 -------------
7 7
8 These functions raise :exc:`TypeError` when expecting a bytes parameter and are 8 These functions raise :exc:`TypeError` when expecting a bytes parameter and are
9 called with a non-bytes parameter. 9 called with a non-bytes parameter.
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 A way to resize a bytes object even though it is "immutable". Only use this 193 A way to resize a bytes object even though it is "immutable". Only use this
194 to build up a brand new bytes object; don't use this if the bytes may already 194 to build up a brand new bytes object; don't use this if the bytes may already
195 be known in other parts of the code. It is an error to call this function if 195 be known in other parts of the code. It is an error to call this function if
196 the refcount on the input bytes object is not one. Pass the address of an 196 the refcount on the input bytes object is not one. Pass the address of an
197 existing bytes object as an lvalue (it may be written into), and the new size 197 existing bytes object as an lvalue (it may be written into), and the new size
198 desired. On success, *\*bytes* holds the resized bytes object and ``0`` is 198 desired. On success, *\*bytes* holds the resized bytes object and ``0`` is
199 returned; the address in *\*bytes* may differ from its input value. If the 199 returned; the address in *\*bytes* may differ from its input value. If the
200 reallocation fails, the original bytes object at *\*bytes* is deallocated, 200 reallocation fails, the original bytes object at *\*bytes* is deallocated,
201 *\*bytes* is set to *NULL*, :exc:`MemoryError` is set, and ``-1`` is 201 *\*bytes* is set to *NULL*, :exc:`MemoryError` is set, and ``-1`` is
202 returned. 202 returned.
LEFTRIGHT

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