Repository navigation
Expand file tree
/
Copy pathtypehints.po
More file actions
92 lines (85 loc) · 4.9 KB
/
Copy pathtypehints.po
File metadata and controls
92 lines (85 loc) · 4.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001 Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Bhuvansh Kataria, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.15\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2026-10-23 18:01+0000\n"
"PO-Revision-Date: 2025-09-16 00:00+0000\n"
"Last-Translator: Bhuvansh Kataria, 2026\n"
"Language-Team: Panjabi (Punjabi) (https://app.transifex.com/python-doc/teams/"
"5390/pa/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: pa\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
msgid "Objects for Type Hinting"
msgstr "ਕਿਸਮ ਸੰਕੇਤਾਂ ਲਈ ਆਬਜੈਕਟ"
msgid ""
"Various built-in types for type hinting are provided. Currently, two types "
"exist -- :ref:`GenericAlias <types-genericalias>` and :ref:`Union <types-"
"union>`. Only ``GenericAlias`` is exposed to C."
msgstr ""
"ਕਿਸਮ ਸੰਕੇਤਾਂ ਲਈ ਕਈ ਬਿਲਟ-ਇਨ ਕਿਸਮਾਂ ਉਪਲਬਧ ਹਨ। ਇਸ ਵੇਲੇ ਦੋ ਕਿਸਮਾਂ ਮੌਜੂਦ ਹਨ "
"— :ref:`GenericAlias <types-genericalias>` ਅਤੇ :ref:`Union <types-union>`। "
"ਇਨ੍ਹਾਂ ਵਿੱਚੋਂ ਸਿਰਫ਼ ``GenericAlias`` ਹੀ C ਲਈ ਉਪਲਬਧ ਹੈ।"
msgid ""
"Create a :ref:`GenericAlias <types-genericalias>` object. Equivalent to "
"calling the Python class :class:`types.GenericAlias`. The *origin* and "
"*args* arguments set the ``GenericAlias``\\ 's ``__origin__`` and "
"``__args__`` attributes respectively. *origin* should be "
"a :c:expr:`PyTypeObject*`, and *args* can be a :c:expr:`PyTupleObject*` or "
"any ``PyObject*``. If *args* passed is not a tuple, a 1-tuple is "
"automatically constructed and ``__args__`` is set to ``(args,)``. Minimal "
"checking is done for the arguments, so the function will succeed even if "
"*origin* is not a type. The ``GenericAlias``\\ 's ``__parameters__`` "
"attribute is constructed lazily from ``__args__``. On failure, an exception "
"is raised and ``NULL`` is returned."
msgstr ""
"ਇੱਕ :ref:`GenericAlias <types-genericalias>` ਆਬਜੈਕਟ ਬਣਾਓ। ਇਹ Python "
"ਕਲਾਸ :class:`types.GenericAlias` ਨੂੰ ਕਾਲ ਕਰਨ ਦੇ ਬਰਾਬਰ ਹੈ। *origin* ਅਤੇ *args* "
"ਆਰਗੂਮੈਂਟਸ ਕ੍ਰਮਵਾਰ ``GenericAlias`` ਦੇ ``__origin__`` ਅਤੇ ``__args__`` ਗੁਣਾਂ ਨੂੰ ਸੈੱਟ ਕਰਦੇ "
"ਹਨ। *origin* ਇੱਕ :c:expr:`PyTypeObject*` ਹੋਣਾ ਚਾਹੀਦਾ ਹੈ, ਅਤੇ *args* "
"ਇੱਕ :c:expr:`PyTupleObject*` ਜਾਂ ਕੋਈ ਵੀ ``PyObject*`` ਹੋ ਸਕਦਾ ਹੈ। ਜੇ *args* ਜੋ "
"ਦਿੱਤਾ ਗਿਆ ਹੈ ਟਿਊਪਲ ਨਹੀਂ ਹੈ, ਤਾਂ ਇੱਕ 1-ਟਿਊਪਲ ਆਪਣੇ ਆਪ ਬਣਾਇਆ ਜਾਂਦਾ ਹੈ ਅਤੇ ``__args__`` ਨੂੰ "
"``(args,)``'ਤੇ ਸੈੱਟ ਕੀਤਾ ਜਾਂਦਾ ਹੈ। ਆਰਗੂਮੈਂਟਾਂ ਲਈ ਸਿਰਫ ਘੱਟੋ-ਘੱਟ ਜਾਂਚ ਕੀਤੀ ਜਾਂਦੀ ਹੈ, ਇਸ ਲਈ "
"ਫੰਕਸ਼ਨ ਸਫਲ ਰਹੇਗਾ ਭਾਵੇਂ *origin* ਕਿਸੇ ਟਾਈਪ ਦਾ ਨਾ ਹੋਵੇ। ``GenericAlias``\\'s "
"``__parameters__`` ਐਟ੍ਰਿਬਿਊਟ ``__args__`` ਤੋਂ ਲੇਜ਼ੀ ਤਰੀਕੇ ਨਾਲ ਬਣਾਇਆ ਜਾਂਦਾ ਹੈ। ਅਸਫਲਤਾ "
"'ਤੇ, ਇੱਕ ਐਕਸੈਪਸ਼ਨ ਉਠਾਇਆ ਜਾਂਦਾ ਹੈ ਅਤੇ ``NULL`` ਵਾਪਸ ਕੀਤਾ ਜਾਂਦਾ ਹੈ।"
msgid "Here's an example of how to make an extension type generic::"
msgstr ""
"ਇੱਥੇ ਇੱਕ ਉਦਾਹਰਨ ਦਿੱਤੀ ਗਈ ਹੈ ਕਿ ਕਿਸ ਤਰ੍ਹਾਂ ਇੱਕ ਐਕਸਟੈਂਸ਼ਨ ਕਿਸਮ ਨੂੰ generic ਬਣਾਇਆ ਜਾ ਸਕਦਾ ਹੈ::"
msgid ""
"...\n"
"static PyMethodDef my_obj_methods[] = {\n"
" // Other methods.\n"
" ...\n"
" {\"__class_getitem__\", Py_GenericAlias, METH_O|METH_CLASS, \"my_obj is "
"generic over its contained type\"}\n"
" ...\n"
"}"
msgstr ""
"...\n"
"static PyMethodDef my_obj_methods[] = {\n"
"// Other methods.\n"
"...\n"
"{\"__class_getitem__\", Py_GenericAlias, METH_O|METH_CLASS, \"my_obj is "
"generic over its contained type\"}\n"
"...\n"
"}"
msgid "The data model method :meth:`~object.__class_getitem__`."
msgstr "ਡਾਟਾ ਮਾਡਲ ਵਿਧੀ :meth:`~object.__class_getitem__`।"
msgid ""
"The C type of the object returned by :c:func:`Py_GenericAlias`. Equivalent "
"to :class:`types.GenericAlias` in Python."
msgstr ""
":c:func:`Py_GenericAlias` ਦੁਆਰਾ ਵਾਪਸ ਕੀਤੇ ਆਬਜੈਕਟ ਦੀ C ਕਿਸਮ। ਇਹ Python "
"ਵਿੱਚ :class:`types.GenericAlias` ਦੇ ਬਰਾਬਰ ਹੈ।"