Skip to content

Commit de2f1cf

Browse files
Update reviewed translations from Transifex
1 parent 88a19e5 commit de2f1cf

5 files changed

Lines changed: 60 additions & 35 deletions

File tree

‎c-api/arg.po‎

Lines changed: 8 additions & 5 deletions
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-07-29 15:50+0000\n"
14+
"POT-Creation-Date: 2026-08-09 14:27+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -605,17 +605,20 @@ msgid ""
605605
"optional. The C variables corresponding to optional arguments should be "
606606
"initialized to their default value --- when an optional argument is not "
607607
"specified, :c:func:`PyArg_ParseTuple` does not touch the contents of the "
608-
"corresponding C variable(s)."
608+
"corresponding C variable(s). For example, the format string ``\"OO|OO\"`` "
609+
"corresponds to the Python signature ``f(a, b, c=None, d=None)``."
609610
msgstr ""
610611

611612
msgid "``$``"
612613
msgstr ""
613614

614615
msgid ""
615616
":c:func:`PyArg_ParseTupleAndKeywords` only: Indicates that the remaining "
616-
"arguments in the Python argument list are keyword-only. Currently, all "
617-
"keyword-only arguments must also be optional arguments, so ``|`` must always "
618-
"be specified before ``$`` in the format string."
617+
"arguments in the Python argument list are keyword-only. They are optional if "
618+
"``|`` was specified before ``$``, and required otherwise. ``|`` cannot be "
619+
"specified after ``$``. For example, the format string ``\"O|O$O\"`` "
620+
"corresponds to the Python signature ``f(a, b=None, *, c=None)``, and the "
621+
"format string ``\"OO$OO\"`` corresponds to ``f(a, b, *, c, d)``."
619622
msgstr ""
620623

621624
msgid "``:``"

‎c-api/frame.po‎

Lines changed: 3 additions & 24 deletions
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-07-29 15:50+0000\n"
14+
"POT-Creation-Date: 2026-08-09 14:27+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -250,29 +250,8 @@ msgid "The frame corresponds to a method on a class instance."
250250
msgstr ""
251251

252252
msgid ""
253-
"However, Python's C API lacks a function to read the executable kind from a "
254-
"frame. Instead, use this recipe:"
255-
msgstr ""
256-
257-
msgid ""
258-
"int\n"
259-
"get_executable_kind(PyFrameObject *frame)\n"
260-
"{\n"
261-
" _PyInterpreterFrame *f = frame->f_frame;\n"
262-
" PyObject *exec = PyStackRef_AsPyObjectBorrow(f->f_executable);\n"
263-
"\n"
264-
" if (PyCode_Check(exec)) {\n"
265-
" return PyUnstable_EXECUTABLE_KIND_PY_FUNCTION;\n"
266-
" }\n"
267-
" if (PyMethod_Check(exec)) {\n"
268-
" return PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION;\n"
269-
" }\n"
270-
" if (Py_IS_TYPE(exec, &PyMethodDescr_Type)) {\n"
271-
" return PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR;\n"
272-
" }\n"
273-
"\n"
274-
" return PyUnstable_EXECUTABLE_KIND_SKIP;\n"
275-
"}"
253+
"Note that reading the executable kind from a frame is currently only "
254+
"possible with undocumented internal APIs."
276255
msgstr ""
277256

278257
msgid "The number of entries in :c:data:`PyUnstable_ExecutableKinds`."

‎library/argparse.po‎

Lines changed: 10 additions & 4 deletions
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-07-29 15:50+0000\n"
14+
"POT-Creation-Date: 2026-08-09 14:27+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -1937,12 +1937,12 @@ msgid ""
19371937
">>> # invalid option\n"
19381938
">>> parser.parse_args(['--bar'])\n"
19391939
"usage: PROG [-h] [--foo FOO] [bar]\n"
1940-
"PROG: error: no such option: --bar\n"
1940+
"PROG: error: unrecognized arguments: --bar\n"
19411941
"\n"
19421942
">>> # wrong number of arguments\n"
19431943
">>> parser.parse_args(['spam', 'badger'])\n"
19441944
"usage: PROG [-h] [--foo FOO] [bar]\n"
1945-
"PROG: error: extra arguments found: badger"
1945+
"PROG: error: unrecognized arguments: badger"
19461946
msgstr ""
19471947

19481948
msgid "Arguments containing ``-``"
@@ -1983,7 +1983,7 @@ msgid ""
19831983
">>> # negative number options present, so -2 is an option\n"
19841984
">>> parser.parse_args(['-2'])\n"
19851985
"usage: PROG [-h] [-1 ONE] [foo]\n"
1986-
"PROG: error: no such option: -2\n"
1986+
"PROG: error: unrecognized arguments: -2\n"
19871987
"\n"
19881988
">>> # negative number options present, so both -1s are options\n"
19891989
">>> parser.parse_args(['-1', '-1'])\n"
@@ -2008,6 +2008,12 @@ msgid ""
20082008
"ambiguous-arguments>` for more details."
20092009
msgstr ""
20102010

2011+
msgid ""
2012+
"Negative-number matching was expanded to include numbers in scientific "
2013+
"notation (``-2.5e-6``), numbers containing underscores (``-1_234.5``), and "
2014+
"complex numbers (``-1.2e-3j``)."
2015+
msgstr ""
2016+
20112017
msgid "Argument abbreviations (prefix matching)"
20122018
msgstr ""
20132019

‎library/asyncio-task.po‎

Lines changed: 15 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-08-05 15:56+0000\n"
14+
"POT-Creation-Date: 2026-08-09 14:27+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -360,6 +360,20 @@ msgid ""
360360
" task.add_done_callback(background_tasks.discard)"
361361
msgstr ""
362362

363+
msgid ""
364+
"Note that this approach never awaits the tasks, so if a task fails, its "
365+
"exception is never retrieved and asyncio logs a \"Task exception was never "
366+
"retrieved\" message when the task is garbage collected. To avoid this, use :"
367+
"class:`asyncio.TaskGroup` which keeps a strong reference to each task, "
368+
"awaits them and propagates their exceptions::"
369+
msgstr ""
370+
371+
msgid ""
372+
"async with asyncio.TaskGroup() as tg:\n"
373+
" for i in range(10):\n"
374+
" tg.create_task(some_coro(param=i))"
375+
msgstr ""
376+
363377
msgid "Added the *name* parameter."
364378
msgstr ""
365379

‎library/test.po‎

Lines changed: 24 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-07-31 15:58+0000\n"
14+
"POT-Creation-Date: 2026-08-09 14:27+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -1551,6 +1551,29 @@ msgid ""
15511551
"the file."
15521552
msgstr ""
15531553

1554+
msgid ""
1555+
"A decorator for running tests with the :envvar:`SOURCE_DATE_EPOCH` "
1556+
"environment variable set to *epoch*."
1557+
msgstr ""
1558+
1559+
msgid ""
1560+
"A decorator for running tests with the :envvar:`SOURCE_DATE_EPOCH` "
1561+
"environment variable unset."
1562+
msgstr ""
1563+
1564+
msgid ""
1565+
"Metaclass wrapping all test methods of the class with :func:"
1566+
"`with_source_date_epoch` if the *source_date_epoch* keyword class argument "
1567+
"is true, or with :func:`without_source_date_epoch` otherwise. For example::"
1568+
msgstr ""
1569+
1570+
msgid ""
1571+
"class TestsWithSourceEpoch(Tests,\n"
1572+
" metaclass=SourceDateEpochTestMeta,\n"
1573+
" source_date_epoch=True):\n"
1574+
" pass"
1575+
msgstr ""
1576+
15541577
msgid ":mod:`!test.support.import_helper` --- Utilities for import tests"
15551578
msgstr ""
15561579

0 commit comments

Comments
 (0)