@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.15\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2026-10-27 19:03 +0000\n "
14+ "POT-Creation-Date : 2026-11-05 20:53 +0000\n "
1515"PO-Revision-Date : 2026-06-03 18:21+0000\n "
1616"Last-Translator : python-doc bot, 2026\n "
1717"Language-Team : Russian (https://app.transifex.com/python-doc/teams/5390/ "
@@ -281,13 +281,15 @@ msgid ""
281281msgstr ""
282282
283283msgid ""
284- "#if Py_TARGET_ABI3T+0 <= 0x30f0000\n"
284+ "#if Py_TARGET_ABI3T+0 < 0x30f0000\n"
285285"#error \" abi3t define is not set!\" \n"
286286"#endif"
287287msgstr ""
288288
289289msgid ""
290- "This should result in a different error than \" ``abi3t`` define is not set\" ."
290+ "This should result in a different error than \" ``abi3t`` define is not "
291+ "set\" . (If you get no error at all, either the module is already ported or "
292+ "you're not compiling the code you changed.)"
291293msgstr ""
292294
293295msgid ""
@@ -467,14 +469,14 @@ msgid ""
467469"static PyModuleDef_Slot my_slots[] = {\n"
468470" {Py_mod_gil, Py_MOD_GIL_NOT_USED},\n"
469471" {Py_mod_multiple_interpreters, Py_MOD_PER_INTERPRETER_GIL_SUPPORTED},\n"
470- " {Py_mod_create, my_module_create },\n"
472+ " {Py_mod_create, create_module },\n"
471473" {Py_mod_exec, my_first_module_exec},\n"
472474" {Py_mod_exec, my_second_module_exec},\n"
473475" {0, NULL}\n"
474476"};"
475477msgstr ""
476478
477- msgid "``py_mod_create ``"
479+ msgid "``Py_mod_create ``"
478480msgstr ""
479481
480482msgid ""
@@ -495,7 +497,7 @@ msgid ""
495497"several functions instead.)"
496498msgstr ""
497499
498- msgid "Multiple ``py_mod_exec ``"
500+ msgid "Multiple ``Py_mod_exec ``"
499501msgstr ""
500502
501503msgid ""
@@ -508,6 +510,7 @@ msgid ""
508510"static int my_module_exec(PyObject *module) {\n"
509511" if (my_first_module_exec(module) < 0) return -1;\n"
510512" if (my_second_module_exec(module) < 0) return -1;\n"
513+ " return 0;\n"
511514"}\n"
512515"\n"
513516"static PyModuleDef_Slot my_slots[] = {\n"
@@ -537,8 +540,8 @@ msgid ""
537540" ...\n"
538541" PySlot_DATA(Py_mod_gil, Py_MOD_GIL_NOT_USED),\n"
539542" PySlot_DATA(Py_mod_multiple_interpreters,\n"
540- " Py_MOD_PER_INTERPRETER_GIL_SUPPORTED)\n"
541- " PySlot_FUNC(Py_mod_create, my_module_create ),\n"
543+ " Py_MOD_PER_INTERPRETER_GIL_SUPPORTED), \n"
544+ " PySlot_FUNC(Py_mod_create, create_module ),\n"
542545" PySlot_FUNC(Py_mod_exec, my_module_exec),\n"
543546" PySlot_END\n"
544547"};"
@@ -597,7 +600,7 @@ msgid ""
597600" ...\n"
598601" PySlot_STATIC_DATA(Py_mod_token, &my_token),\n"
599602" PySlot_END\n"
600- "}"
603+ "}; "
601604msgstr ""
602605
603606msgid "Then, switch from :c:func:`PyModule_GetDef` calls such as:"
@@ -631,7 +634,7 @@ msgid ""
631634msgstr ""
632635
633636msgid ""
634- "PyObject *module = PyType_GetModuleByToken(type, my_token);\n"
637+ "PyObject *module = PyType_GetModuleByToken(type, & my_token);\n"
635638"/* handle error; use module */\n"
636639"Py_XDECREF(module);"
637640msgstr ""
@@ -807,11 +810,12 @@ msgid ""
807810msgstr ""
808811
809812msgid ""
810- "PyTypeObject cls;\n"
813+ "PyTypeObject * cls;\n"
811814"if (PyType_GetBaseByToken(Py_TYPE(obj), my_tp_token, &cls) < 0) {\n"
812815" /* handle error */\n"
813816"}\n"
814- "CustomObjectData *data = PyObject_GetTypeData(obj, cls);"
817+ "CustomObjectData *data = PyObject_GetTypeData(obj, cls);\n"
818+ "Py_DECREF(cls);"
815819msgstr ""
816820
817821msgid ""
0 commit comments