@@ -12,7 +12,7 @@ msgid ""
1212msgstr ""
1313"Project-Id-Version : Python 3.15\n "
1414"Report-Msgid-Bugs-To : \n "
15- "POT-Creation-Date : 2026-08-25 14:37 +0000\n "
15+ "POT-Creation-Date : 2026-08-27 23:26 +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/ "
@@ -58,14 +58,25 @@ msgstr ""
5858
5959msgid ""
6060"Whenever the documentation mentions a *character* it can be specified as an "
61- "integer, a one-character Unicode string or a one-byte byte string."
61+ "integer, a one-character Unicode string or a one-byte byte string. An "
62+ "integer is the code of a single encoded byte, optionally combined with "
63+ "attributes and a color pair, as returned by :meth:`window.inch`."
6264msgstr ""
6365
6466msgid ""
6567"Whenever the documentation mentions a *character string* it can be specified "
6668"as a Unicode string or a byte string."
6769msgstr ""
6870
71+ msgid ""
72+ "Whether curses may be used from several threads depends on the underlying "
73+ "library and how it was built. In many implementations, including the default "
74+ "build of ncurses, the screen state is shared and not thread-safe; since the "
75+ "blocking and refresh methods (such as :meth:`~window.getch` and :meth:"
76+ "`~window.refresh`) release the :term:`GIL`, unsynchronized use from several "
77+ "threads can then crash the interpreter. Serialize the calls."
78+ msgstr ""
79+
6980msgid "Module :mod:`curses.ascii`"
7081msgstr ""
7182
@@ -503,8 +514,8 @@ msgstr ""
503514
504515msgid ""
505516"Equivalent to ``tputs(str, 1, putchar)``; emit the value of a specified "
506- "terminfo capability for the current terminal. Note that the output of :func: "
507- "`putp` always goes to standard output."
517+ "terminfo capability, a bytes object, for the current terminal. Note that the "
518+ "output of :func: `putp` always goes to standard output."
508519msgstr ""
509520
510521msgid ":func:`setupterm` (or :func:`initscr`) must be called first."
@@ -648,8 +659,8 @@ msgstr ""
648659
649660msgid ""
650661"Instantiate the bytes object *str* with the supplied parameters, where *str* "
651- "should be a parameterized string obtained from the terminfo database. For "
652- "example, ``tparm(tigetstr(\" cup\" ), 5, 3)`` could result in "
662+ "should be a parameterized byte string obtained from the terminfo database. "
663+ "For example, ``tparm(tigetstr(\" cup\" ), 5, 3)`` could result in "
653664"``b'\\ 033[6;4H'``, the exact result depending on terminal type. Up to nine "
654665"integer parameters may be supplied."
655666msgstr ""
@@ -670,14 +681,19 @@ msgstr ""
670681
671682msgid ""
672683"Return a bytes object which is a printable representation of the character "
673- "*ch*. Control characters are represented as a caret followed by the "
674- "character, for example as ``b'^C'``. Printing characters are left as they "
675- "are."
684+ "*ch*; any attributes and color pair are ignored. Control characters are "
685+ "represented as a caret followed by the character, for example as ``b'^C'``. "
686+ "Printing characters are left as they are."
676687msgstr ""
677688
678689msgid "Push *ch* so the next :meth:`~window.getch` will return it."
679690msgstr ""
680691
692+ msgid ""
693+ "*ch* may be an integer (a key code or the code of an encoded byte), a byte, "
694+ "or a string of length 1 which encodes to a single byte."
695+ msgstr ""
696+
681697msgid "Only one *ch* can be pushed before :meth:`!getch` is called."
682698msgstr ""
683699
@@ -689,6 +705,11 @@ msgstr ""
689705msgid "Push *ch* so the next :meth:`~window.get_wch` will return it."
690706msgstr ""
691707
708+ msgid ""
709+ "*ch* may be an integer (a character code, not a key code) or a string of "
710+ "length 1."
711+ msgstr ""
712+
692713msgid "Only one *ch* can be pushed before :meth:`!get_wch` is called."
693714msgstr ""
694715
@@ -983,23 +1004,54 @@ msgid ""
9831004msgstr ""
9841005
9851006msgid ""
986- "Get a character. Note that the integer returned does *not* have to be in "
987- "ASCII range: function keys, keypad keys and so on are represented by numbers "
988- "higher than 255. In no-delay mode, return ``-1`` if there is no input, "
989- "otherwise wait until a key is pressed."
1007+ "Read a key press, after moving the cursor to *y*, *x* if specified, and "
1008+ "return it as an integer. The window is refreshed first if it is not a pad "
1009+ "and was modified since the last refresh. Wait until a key is pressed, or "
1010+ "return ``-1`` if the read is non-blocking or times out (see :meth:`nodelay` "
1011+ "and :meth:`timeout`)."
1012+ msgstr ""
1013+
1014+ msgid ""
1015+ "An ordinary key is returned as the code of a single byte of its encoding in "
1016+ "the current locale, so a character encoded with several bytes takes several "
1017+ "calls. For example, in a UTF-8 locale ``'é'`` is read as ``195``, then "
1018+ "``169``. Use :meth:`get_wch` to read it as a single character."
1019+ msgstr ""
1020+
1021+ msgid ""
1022+ "In keypad mode (see :meth:`keypad`) function keys and other special keys are "
1023+ "returned as one of the :ref:`KEY_* constants <curses-key-constants>`, which "
1024+ "cannot be mistaken for an ordinary key. Otherwise, or if their escape "
1025+ "sequence does not arrive in time (see :meth:`notimeout` and :func:"
1026+ "`set_escdelay`), their bytes are returned one at a time."
1027+ msgstr ""
1028+
1029+ msgid ""
1030+ "In echo mode (see :func:`echo`) the key is added to the window as by :meth:"
1031+ "`addch`; special keys are not echoed."
1032+ msgstr ""
1033+
1034+ msgid ""
1035+ "Read a key press, after moving the cursor to *y*, *x* if specified, and "
1036+ "return it as a one-character :class:`str`. The window is refreshed first if "
1037+ "it is not a pad and was modified since the last refresh. Wait until a key is "
1038+ "pressed, or raise :exc:`error` if the read is non-blocking or times out "
1039+ "(see :meth:`nodelay` and :meth:`timeout`)."
9901040msgstr ""
9911041
9921042msgid ""
993- "Get a wide character. Return a character for most keys, or an integer for "
994- "function keys, keypad keys, and other special keys. In no-delay mode, raise "
995- "an exception if there is no input."
1043+ "In keypad mode (see :meth:`keypad`) function keys and other special keys are "
1044+ "returned as one of the :ref:`KEY_* constants <curses-key-constants>`, an "
1045+ "integer. Otherwise, or if their escape sequence does not arrive in time "
1046+ "(see :meth:`notimeout` and :func:`set_escdelay`), their characters are "
1047+ "returned one at a time."
9961048msgstr ""
9971049
9981050msgid ""
999- "Get a character, returning a string instead of an integer, as :meth:`getch` "
1000- "does. Function keys, keypad keys and other special keys return a multibyte "
1001- "string containing the key name. In no-delay mode, raise an exception if "
1002- "there is no input."
1051+ "Read a key press as :meth:`getch` does, but return it as a :class:`str`: an "
1052+ "ordinary key as a one-character string, the byte decoded as Latin-1, and a "
1053+ "special key as its name, such as ``'KEY_UP'`` (see :func:`keyname`). Raise : "
1054+ "exc:`error` instead of returning ``-1`` if there is no input."
10031055msgstr ""
10041056
10051057msgid "Return a tuple ``(y, x)`` of the height and width of the window."
@@ -1012,8 +1064,10 @@ msgid ""
10121064msgstr ""
10131065
10141066msgid ""
1015- "Read a bytes object from the user, with primitive line editing capacity. At "
1016- "most *n* characters are read; *n* defaults to and cannot exceed 2047."
1067+ "Read a line of input from the user, with primitive line editing capacity, "
1068+ "after moving the cursor to *y*, *x* if specified. Return it as a bytes "
1069+ "object, in the encoding of the current locale and without the terminating "
1070+ "newline. At most *n* bytes are read; *n* defaults to and cannot exceed 2047."
10171071msgstr ""
10181072
10191073msgid "The maximum value for *n* was increased from 1023 to 2047."
@@ -1098,12 +1152,10 @@ msgid ""
10981152msgstr ""
10991153
11001154msgid ""
1101- "Return a bytes object of characters, extracted from the window starting at "
1102- "the current cursor position, or at *y*, *x* if specified, and stopping at "
1103- "the end of the line. Attributes and color information are stripped from the "
1104- "characters. If *n* is specified, :meth:`instr` returns a string at most *n* "
1105- "characters long (exclusive of the trailing NUL). The maximum value for *n* "
1106- "is 2047."
1155+ "Read the text of the window from the current cursor position, or from *y*, "
1156+ "*x* if specified, to the end of the line, and return it as a bytes object, "
1157+ "in the encoding of the current locale. Attributes and color pairs are "
1158+ "stripped. At most *n* bytes are read; *n* defaults to and cannot exceed 2047."
11071159msgstr ""
11081160
11091161msgid ""
@@ -1120,7 +1172,9 @@ msgstr ""
11201172msgid ""
11211173"If *flag* is ``True``, escape sequences generated by some keys (keypad, "
11221174"function keys) will be interpreted by :mod:`!curses`. If *flag* is "
1123- "``False``, escape sequences will be left as is in the input stream."
1175+ "``False``, escape sequences will be left as is in the input stream. Keypad "
1176+ "mode is disabled by default, but :func:`wrapper` enables it for the main "
1177+ "window."
11241178msgstr ""
11251179
11261180msgid ""
0 commit comments