Visitar URL original
gh-106320: Remove _PyBytes_Join() C API by vstinner · Pull Request #107144 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix test_peg_generator: export _PyBytes_DecodeEscape()
  • Loading branch information
vstinner committed Jul 23, 2023
commit bdf5f4cde7e434535429560c32894958c26870b5
7 changes: 4 additions & 3 deletions Include/internal/pycore_bytesobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ extern PyObject* _PyBytes_FromHex(
PyObject *string,
int use_bytearray);

/* Helper for PyBytes_DecodeEscape that detects invalid escape chars. */
extern PyObject * _PyBytes_DecodeEscape(const char *, Py_ssize_t,
const char *, const char **);
// Helper for PyBytes_DecodeEscape that detects invalid escape chars.
// Export for test_peg_generator.
PyAPI_FUNC(PyObject*) _PyBytes_DecodeEscape(const char *, Py_ssize_t,
const char *, const char **);

/* _PyBytes_Join(sep, x) is like sep.join(x). sep must be PyBytesObject*,
x must be an iterable object. */
Expand Down