Skip to content

Commit eb57679

Browse files
author
GitHub Action's update-translation job
committed
Update translation from Transifex
1 parent 0164f62 commit eb57679

82 files changed

Lines changed: 1954 additions & 633 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎builtins/functions.po‎

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ msgid ""
1414
msgstr ""
1515
"Project-Id-Version: Python 3.15\n"
1616
"Report-Msgid-Bugs-To: \n"
17-
"POT-Creation-Date: 2026-10-09 19:08+0000\n"
17+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1818
"PO-Revision-Date: 2026-09-13 17:09+0000\n"
1919
"Last-Translator: Dmitry Luschan, 2026\n"
2020
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"
@@ -797,11 +797,14 @@ msgstr ""
797797
"по имени модуля."
798798

799799
msgid ""
800-
"This function raises :exc:`SyntaxError` or :exc:`ValueError` if the compiled "
801-
"source is invalid."
800+
"This function raises :exc:`SyntaxError` if the compiled source is invalid, "
801+
"including a *source* containing a null character or that cannot be decoded; :"
802+
"exc:`ValueError` if *mode* or *flags* is invalid, or if a string *source* "
803+
"contains surrogate characters; :exc:`MemoryError` or :exc:`RecursionError` "
804+
"if *source* is too complex to parse or compile, for example an expression "
805+
"with many thousands of nested operators; and :exc:`OverflowError` if "
806+
"*source* is too large."
802807
msgstr ""
803-
"Эта функция возбуждает исключения :exc:`SyntaxError` или :exc:`ValueError`, "
804-
"если исходный код для компиляции некорректен."
805808

806809
msgid ""
807810
"If you want to parse Python code into its AST representation, see :func:`ast."
@@ -862,6 +865,11 @@ msgstr ""
862865
"включения на верхнем уровне поддержки ``await``, ``async for`` и ``async "
863866
"with``."
864867

868+
msgid ""
869+
":exc:`SyntaxError` is raised instead of :exc:`ValueError` when null bytes "
870+
"are encountered in *source*."
871+
msgstr ""
872+
865873
msgid "Added the *module* parameter."
866874
msgstr "Добавлен параметр *module*."
867875

‎c-api/apiabiversion.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgid ""
1212
msgstr ""
1313
"Project-Id-Version: Python 3.15\n"
1414
"Report-Msgid-Bugs-To: \n"
15-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
15+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1717
"Last-Translator: Gnevich <and.vareba81@gmail.com>, 2025\n"
1818
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/bool.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/buffer.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/bytes.po‎

Lines changed: 125 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-10-05 21:29+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2026\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"
@@ -538,6 +538,130 @@ msgid ""
538538
"return (char*)PyBytesWriter_GetData(writer) + pos;"
539539
msgstr ""
540540

541+
msgid "Example creating the string ``b'abc'``"
542+
msgstr ""
543+
544+
msgid ""
545+
"Example creating the bytes string ``b\"abc\"``, with a fixed size of 3 "
546+
"bytes::"
547+
msgstr ""
548+
549+
msgid ""
550+
"PyObject* create_abc(void)\n"
551+
"{\n"
552+
" PyBytesWriter *writer = PyBytesWriter_Create(3);\n"
553+
" if (writer == NULL) {\n"
554+
" return NULL;\n"
555+
" }\n"
556+
"\n"
557+
" char *str = PyBytesWriter_GetData(writer);\n"
558+
" memcpy(str, \"abc\", 3);\n"
559+
" return PyBytesWriter_Finish(writer);\n"
560+
"}"
561+
msgstr ""
562+
563+
msgid "Variant using a pointer to compute the final size::"
564+
msgstr ""
565+
566+
msgid ""
567+
"PyObject* create_abc_ptr(void)\n"
568+
"{\n"
569+
" PyBytesWriter *writer = PyBytesWriter_Create(3);\n"
570+
" if (writer == NULL) {\n"
571+
" return NULL;\n"
572+
" }\n"
573+
"\n"
574+
" char *str = PyBytesWriter_GetData(writer);\n"
575+
" memcpy(str, \"abc\", 3);\n"
576+
" str += 1;\n"
577+
" return PyBytesWriter_FinishWithPointer(writer, str);\n"
578+
"}"
579+
msgstr ""
580+
581+
msgid "Update ``PyBytes_FromStringAndSize()`` code"
582+
msgstr ""
583+
584+
msgid ""
585+
"Example of code using the soft deprecated ``PyBytes_FromStringAndSize(NULL, "
586+
"size)`` API::"
587+
msgstr ""
588+
589+
msgid ""
590+
"int copy_bytes(char *dest, const char *src, Py_ssize_t num_bytes)\n"
591+
"{\n"
592+
" ...\n"
593+
"}\n"
594+
"\n"
595+
"PyObject* create_string(const char *start, Py_ssize_t num_bytes)\n"
596+
"{\n"
597+
" PyObject *result = PyBytes_FromStringAndSize(NULL, num_bytes);\n"
598+
" if (result == NULL) {\n"
599+
" return NULL;\n"
600+
" }\n"
601+
" if (copy_bytes(PyBytes_AS_STRING(result), start, num_bytes) < 0) {\n"
602+
" Py_CLEAR(result);\n"
603+
" }\n"
604+
" return result;\n"
605+
"}"
606+
msgstr ""
607+
608+
msgid "It can now be updated to::"
609+
msgstr ""
610+
611+
msgid ""
612+
"PyObject* create_string(const char *start, Py_ssize_t num_bytes)\n"
613+
"{\n"
614+
" PyBytesWriter *writer = PyBytesWriter_Create(num_bytes);\n"
615+
" if (writer == NULL) {\n"
616+
" return NULL;\n"
617+
" }\n"
618+
" if (copy_bytes(PyBytesWriter_GetData(writer), start, num_bytes) < 0) {\n"
619+
" PyBytesWriter_Discard(writer);\n"
620+
" return NULL;\n"
621+
" }\n"
622+
" return PyBytesWriter_Finish(writer);\n"
623+
"}"
624+
msgstr ""
625+
626+
msgid "Update ``_PyBytes_Resize()`` code"
627+
msgstr ""
628+
629+
msgid "Example of code using the soft deprecated ``_PyBytes_Resize()`` API::"
630+
msgstr ""
631+
632+
msgid ""
633+
"void create_string(Py_ssize_t size)\n"
634+
"{\n"
635+
" PyObject *bytes = PyBytes_FromStringAndSize(NULL, size);\n"
636+
" if (bytes == NULL) {\n"
637+
" return NULL;\n"
638+
" }\n"
639+
" char *str = PyBytes_AS_STRING(bytes);\n"
640+
"\n"
641+
" // ... write data into str ...\n"
642+
"\n"
643+
" if (_PyBytes_Resize(&bytes, (str - PyBytes_AS_STRING(bytes)))) {\n"
644+
" return NULL;\n"
645+
" }\n"
646+
" return bytes;\n"
647+
"}"
648+
msgstr ""
649+
650+
msgid ""
651+
"void create_string(Py_ssize_t size)\n"
652+
"{\n"
653+
" PyBytesWriter *writer = PyBytesWriter_Create(size);\n"
654+
" if (writer == NULL) {\n"
655+
" return NULL;\n"
656+
" }\n"
657+
" char *str = PyBytesWriter_GetData(writer);\n"
658+
"\n"
659+
" // ... write data into str ...\n"
660+
"\n"
661+
" return PyBytesWriter_FinishWithPointer(writer, str);\n"
662+
"}"
663+
msgstr ""
664+
541665
msgid "object"
542666
msgstr ""
543667

‎c-api/call.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/capsule.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/cell.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/code.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

‎c-api/codec.po‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ msgid ""
1111
msgstr ""
1212
"Project-Id-Version: Python 3.15\n"
1313
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2026-09-21 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: python-doc bot, 2025\n"
1717
"Language-Team: Russian (https://app.transifex.com/python-doc/teams/5390/"

0 commit comments

Comments
 (0)