mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-67224: Show source lines in tracebacks when using the -c option when running Python (#111200)
This commit is contained in:
parent
3f84a19e62
commit
90a1b2859f
13 changed files with 104 additions and 36 deletions
|
|
@ -114,6 +114,9 @@ extern int _Py_LegacyLocaleDetected(int warn);
|
|||
// Export for 'readline' shared extension
|
||||
PyAPI_FUNC(char*) _Py_SetLocaleFromEnv(int category);
|
||||
|
||||
// Export for special main.c string compiling with source tracebacks
|
||||
int _PyRun_SimpleStringFlagsWithName(const char *command, const char* name, PyCompilerFlags *flags);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue