mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
add PyErr_SyntaxLocationEx, to support adding a column offset
This commit is contained in:
parent
26d64aeee4
commit
2c53971b37
3 changed files with 32 additions and 1 deletions
|
@ -229,6 +229,7 @@ int PySignal_SetWakeupFd(int fd);
|
|||
|
||||
/* Support for adding program text to SyntaxErrors */
|
||||
PyAPI_FUNC(void) PyErr_SyntaxLocation(const char *, int);
|
||||
PyAPI_FUNC(void) PyErr_SyntaxLocationEx(const char *, int, int);
|
||||
PyAPI_FUNC(PyObject *) PyErr_ProgramText(const char *, int);
|
||||
|
||||
/* The following functions are used to create and modify unicode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue