Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions Doc/library/locale.rst
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,10 @@ The :mod:`!locale` module defines the following exception and functions:
.. versionchanged:: 3.14
The function now temporarily sets the ``LC_CTYPE`` locale in some cases.

.. versionchanged:: next
On glibc, the ``LC_TIME`` items (except ``ERA``) are now decoded
independently of the ``LC_CTYPE`` encoding.


.. function:: getdefaultlocale([envvars])

Expand Down
3 changes: 0 additions & 3 deletions Include/internal/pycore_pylifecycle.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ 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);


/* interpreter config */

Expand Down
15 changes: 8 additions & 7 deletions Include/internal/pycore_pythonrun.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,18 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif

extern int _PyRun_SimpleFileObject(
extern PyObject* _PyRun_SimpleFile(
FILE *fp,
PyObject *filename,
int closeit,
PyCompilerFlags *flags);

extern int _PyRun_AnyFileObject(
extern PyObject* _PyRun_AnyFile(
FILE *fp,
PyObject *filename,
int closeit,
PyCompilerFlags *flags);

extern int _PyRun_InteractiveLoopObject(
FILE *fp,
PyObject *filename,
PyCompilerFlags *flags);

extern int _PyObject_SupportedAsScript(PyObject *);
extern const char* _Py_SourceAsString(
PyObject *cmd,
Expand All @@ -39,6 +34,12 @@ extern PyObject * _Py_CompileStringObjectWithModule(
PyCompilerFlags *flags, int optimize,
PyObject *module);

// Export for special main.c string compiling with source tracebacks
extern PyObject* _PyRun_SimpleString(
const char *command,
PyObject* name,
PyCompilerFlags *flags);


/* Stack size, in "pointers". This must be large enough, so
* no two calls to check recursion depth are more than this far
Expand Down
Loading
Loading