Update user-facing strings in source code to use Typthon

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-24 18:03:06 +00:00
parent d520bdf473
commit 49770f774b
7 changed files with 32 additions and 32 deletions

View File

@@ -65,7 +65,7 @@ Py_FrozenMain(int argc, char **argv)
#endif
if (_Py_GetConfig()->verbose) {
fprintf(stderr, "Python %s\n%s\n",
fprintf(stderr, "Typthon %s\n%s\n",
Py_GetVersion(), Py_GetCopyright());
}

View File

@@ -3032,7 +3032,7 @@ config_parse_cmdline(PyConfig *config, PyWideStringList *warnoptions,
} while (1);
if (print_version) {
printf("Python %s\n",
printf("Typthon %s\n",
(print_version >= 2) ? Py_GetVersion() : PY_VERSION);
return _PyStatus_EXIT(0);
}
@@ -3621,7 +3621,7 @@ _Py_DumpPathConfig(PyThreadState *tstate)
{
PyObject *exc = _PyErr_GetRaisedException(tstate);
PySys_WriteStderr("Python path configuration:\n");
PySys_WriteStderr("Typthon path configuration:\n");
#define DUMP_CONFIG(NAME, FIELD) \
do { \

View File

@@ -218,7 +218,7 @@ _Py_LegacyLocaleDetected(int warn)
#ifndef MS_WINDOWS
static const char *_C_LOCALE_WARNING =
"Python runtime initialized with LC_CTYPE=C (a locale with default ASCII "
"Typthon runtime initialized with LC_CTYPE=C (a locale with default ASCII "
"encoding), which may cause Unicode compatibility problems. Using C.UTF-8, "
"C.utf8, or UTF-8 (if available) as alternative Unicode-compatible "
"locales is recommended.\n";
@@ -260,7 +260,7 @@ _Py_IsLocaleCoercionTarget(const char *ctype_loc)
#ifdef PY_COERCE_C_LOCALE
static const char C_LOCALE_COERCION_WARNING[] =
"Python detected LC_CTYPE=C: LC_CTYPE coerced to %.20s (set another locale "
"Typthon detected LC_CTYPE=C: LC_CTYPE coerced to %.20s (set another locale "
"or PYTHONCOERCECLOCALE=0 to disable this locale coercion behavior).\n";
static int
@@ -3119,7 +3119,7 @@ fatal_output_debug(const char *msg)
static void
fatal_error_dump_runtime(int fd, _PyRuntimeState *runtime)
{
PUTS(fd, "Python runtime state: ");
PUTS(fd, "Typthon runtime state: ");
PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(runtime);
if (finalizing) {
PUTS(fd, "finalizing (tstate=0x");