Skip to content

Commit f5a19aa

Browse files
Update reviewed translations from Transifex
1 parent 27b4128 commit f5a19aa

30 files changed

Lines changed: 1225 additions & 295 deletions

‎builtins/functions.po‎

Lines changed: 13 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-09-19 16:52+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1515
"PO-Revision-Date: 2026-09-13 17:09+0000\n"
1616
"Last-Translator: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -767,11 +767,14 @@ msgstr ""
767767
"`filter <warning-filter>` syntax warnings ਨੂੰ ਸਪਸ਼ਟ ਕਰਨ ਲਈ ਲੋੜੀਂਦਾ ਹੈ।"
768768

769769
msgid ""
770-
"This function raises :exc:`SyntaxError` or :exc:`ValueError` if the compiled "
771-
"source is invalid."
770+
"This function raises :exc:`SyntaxError` if the compiled source is invalid, "
771+
"including a *source* containing a null character or that cannot be decoded; :"
772+
"exc:`ValueError` if *mode* or *flags* is invalid, or if a string *source* "
773+
"contains surrogate characters; :exc:`MemoryError` or :exc:`RecursionError` "
774+
"if *source* is too complex to parse or compile, for example an expression "
775+
"with many thousands of nested operators; and :exc:`OverflowError` if "
776+
"*source* is too large."
772777
msgstr ""
773-
"ਜੇ ਕੰਪਾਇਲ ਕੀਤਾ ਜਾਣ ਵਾਲਾ source ਅਵੈਧ ਹੋਵੇ ਤਾਂ ਇਹ ਫੰਕਸ਼ਨ :exc:`SyntaxError` ਜਾਂ :exc:"
774-
"`ValueError` ਉਠਾਉਂਦਾ ਹੈ।"
775778

776779
msgid ""
777780
"If you want to parse Python code into its AST representation, see :func:`ast."
@@ -825,6 +828,11 @@ msgstr ""
825828
"ਹੁਣ flags ਵਿੱਚ ``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` ਦੇ ਕੇ top-level ``await``, "
826829
"``async for`` ਅਤੇ ``async with`` ਲਈ ਸਮਰਥਨ ਯੋਗ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ।"
827830

831+
msgid ""
832+
":exc:`SyntaxError` is raised instead of :exc:`ValueError` when null bytes "
833+
"are encountered in *source*."
834+
msgstr ""
835+
828836
msgid "Added the *module* parameter."
829837
msgstr "*module* ਪੈਰਾਮੀਟਰ ਸ਼ਾਮਲ ਕੀਤਾ ਗਿਆ।"
830838

‎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: Bhuvansh Kataria, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -536,6 +536,130 @@ msgid ""
536536
"return (char*)PyBytesWriter_GetData(writer) + pos;"
537537
msgstr ""
538538

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

‎howto/functional.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-19 16:52+0000\n"
14+
"POT-Creation-Date: 2026-10-09 19:08+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/"

‎library/code.po‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: Python 3.15\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2026-09-29 18:58+0000\n"
11+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1212
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
1313
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
1414
"teams/5390/pa/)\n"
@@ -106,10 +106,9 @@ msgid ""
106106
msgstr ""
107107

108108
msgid ""
109-
"The input is incorrect; :func:`compile_command` raised an exception (:exc:"
110-
"`SyntaxError` or :exc:`OverflowError`). A syntax traceback will be printed "
111-
"by calling the :meth:`showsyntaxerror` method. :meth:`runsource` returns "
112-
"``False``."
109+
"The input is incorrect; :func:`compile_command` raised an exception "
110+
"(usually :exc:`SyntaxError`). A syntax traceback will be printed by calling "
111+
"the :meth:`showsyntaxerror` method. :meth:`runsource` returns ``False``."
113112
msgstr ""
114113

115114
msgid ""

‎library/ctypes.po‎

Lines changed: 4 additions & 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-29 18:58+0000\n"
15+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Sukhmanpreet kaur, 2026\n"
1818
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -2239,6 +2239,9 @@ msgid ""
22392239
"correct :attr:`!restype` attribute to use these functions."
22402240
msgstr ""
22412241

2242+
msgid "If the Python interpreter is statically linked, this may be ``None``."
2243+
msgstr ""
2244+
22422245
msgid ""
22432246
"Loading a library through any of these objects raises an :ref:`auditing "
22442247
"event <auditing>` ``ctypes.dlopen`` with string argument ``name``, the name "

‎library/frameworks.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:01+0000\n"
1616
"Last-Translator: Sukhmanpreet kaur, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"

‎library/http.cookies.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-20 14:29+0000\n"
14+
"POT-Creation-Date: 2026-10-09 19:08+0000\n"
1515
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1616
"Last-Translator: Sukhmanpreet kaur, 2026\n"
1717
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"

‎library/idle.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-10-03 17:41+0000\n"
15+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Sukhmanpreet kaur, 2026\n"
1818
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"

‎library/imaplib.po‎

Lines changed: 14 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-09-29 18:58+0000\n"
14+
"POT-Creation-Date: 2026-10-11 18:31+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/"
@@ -685,6 +685,19 @@ msgstr ""
685685
msgid "The following attributes are defined on instances of :class:`IMAP4`:"
686686
msgstr ""
687687

688+
msgid "A tuple of the capabilities advertised by the server, in upper case."
689+
msgstr ""
690+
691+
msgid ""
692+
"It is set when the connection is established, and refreshed after a "
693+
"successful :meth:`~IMAP4.login`, :meth:`~IMAP4.authenticate` or :meth:"
694+
"`~IMAP4.starttls`, because the server can advertise different capabilities "
695+
"in different connection states."
696+
msgstr ""
697+
698+
msgid "Refreshed after :meth:`~IMAP4.login` and :meth:`~IMAP4.authenticate`."
699+
msgstr ""
700+
688701
msgid ""
689702
"The most recent supported protocol in the ``CAPABILITY`` response from the "
690703
"server."

‎library/inspect.po‎

Lines changed: 16 additions & 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-10-09 19:08+0000\n"
15+
"POT-Creation-Date: 2026-10-11 18:31+0000\n"
1616
"PO-Revision-Date: 2025-09-16 00:01+0000\n"
1717
"Last-Translator: Sukhmanpreet kaur, 2026\n"
1818
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/"
@@ -667,6 +667,11 @@ msgid ""
667667
"wrapped function is a Python generator function."
668668
msgstr ""
669669

670+
msgid ""
671+
":term:`Duck-typed <duck-typing>` function-like objects now return ``True`` "
672+
"if their code object has the :data:`CO_GENERATOR` flag."
673+
msgstr ""
674+
670675
msgid ""
671676
"Functions wrapped in :func:`functools.partialmethod` now return ``True`` if "
672677
"the wrapped function is a Python generator function."
@@ -687,6 +692,11 @@ msgid ""
687692
"wrapped function is a :term:`coroutine function`."
688693
msgstr ""
689694

695+
msgid ""
696+
":term:`Duck-typed <duck-typing>` function-like objects now return ``True`` "
697+
"if their code object has the :data:`CO_COROUTINE` flag."
698+
msgstr ""
699+
690700
msgid ""
691701
"Sync functions marked with :func:`markcoroutinefunction` now return ``True``."
692702
msgstr ""
@@ -757,6 +767,11 @@ msgid ""
757767
"wrapped function is an :term:`asynchronous generator` function."
758768
msgstr ""
759769

770+
msgid ""
771+
":term:`Duck-typed <duck-typing>` function-like objects now return ``True`` "
772+
"if their code object has the :data:`CO_ASYNC_GENERATOR` flag."
773+
msgstr ""
774+
760775
msgid ""
761776
"Functions wrapped in :func:`functools.partialmethod` now return ``True`` if "
762777
"the wrapped function is a :term:`asynchronous generator` function."

0 commit comments

Comments
 (0)