|
| 1 | +# SOME DESCRIPTIVE TITLE. |
| 2 | +# Copyright (C) 2001 Python Software Foundation |
| 3 | +# This file is distributed under the same license as the Python package. |
| 4 | +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 | +# |
| 6 | +#, fuzzy |
| 7 | +msgid "" |
| 8 | +msgstr "" |
| 9 | +"Project-Id-Version: Python 3.14\n" |
| 10 | +"Report-Msgid-Bugs-To: \n" |
| 11 | +"POT-Creation-Date: 2025-05-09 14:19+0000\n" |
| 12 | +"PO-Revision-Date: 2021-06-28 00:50+0000\n" |
| 13 | +"Language-Team: Indonesian (https://app.transifex.com/python-doc/teams/5390/id/)\n" |
| 14 | +"MIME-Version: 1.0\n" |
| 15 | +"Content-Type: text/plain; charset=UTF-8\n" |
| 16 | +"Content-Transfer-Encoding: 8bit\n" |
| 17 | +"Language: id\n" |
| 18 | +"Plural-Forms: nplurals=1; plural=0;\n" |
| 19 | + |
| 20 | +#: ../../c-api/typehints.rst:6 |
| 21 | +msgid "Objects for Type Hinting" |
| 22 | +msgstr "" |
| 23 | + |
| 24 | +#: ../../c-api/typehints.rst:8 |
| 25 | +msgid "" |
| 26 | +"Various built-in types for type hinting are provided. Currently, two types " |
| 27 | +"exist -- :ref:`GenericAlias <types-genericalias>` and :ref:`Union <types-" |
| 28 | +"union>`. Only ``GenericAlias`` is exposed to C." |
| 29 | +msgstr "" |
| 30 | + |
| 31 | +#: ../../c-api/typehints.rst:14 |
| 32 | +msgid "" |
| 33 | +"Create a :ref:`GenericAlias <types-genericalias>` object. Equivalent to " |
| 34 | +"calling the Python class :class:`types.GenericAlias`. The *origin* and " |
| 35 | +"*args* arguments set the ``GenericAlias``\\ 's ``__origin__`` and " |
| 36 | +"``__args__`` attributes respectively. *origin* should be a " |
| 37 | +":c:expr:`PyTypeObject*`, and *args* can be a :c:expr:`PyTupleObject*` or any" |
| 38 | +" ``PyObject*``. If *args* passed is not a tuple, a 1-tuple is automatically" |
| 39 | +" constructed and ``__args__`` is set to ``(args,)``. Minimal checking is " |
| 40 | +"done for the arguments, so the function will succeed even if *origin* is not" |
| 41 | +" a type. The ``GenericAlias``\\ 's ``__parameters__`` attribute is " |
| 42 | +"constructed lazily from ``__args__``. On failure, an exception is raised " |
| 43 | +"and ``NULL`` is returned." |
| 44 | +msgstr "" |
| 45 | + |
| 46 | +#: ../../c-api/typehints.rst:28 |
| 47 | +msgid "Here's an example of how to make an extension type generic::" |
| 48 | +msgstr "" |
| 49 | + |
| 50 | +#: ../../c-api/typehints.rst:30 |
| 51 | +msgid "" |
| 52 | +"...\n" |
| 53 | +"static PyMethodDef my_obj_methods[] = {\n" |
| 54 | +" // Other methods.\n" |
| 55 | +" ...\n" |
| 56 | +" {\"__class_getitem__\", Py_GenericAlias, METH_O|METH_CLASS, \"See PEP 585\"}\n" |
| 57 | +" ...\n" |
| 58 | +"}" |
| 59 | +msgstr "" |
| 60 | + |
| 61 | +#: ../../c-api/typehints.rst:38 |
| 62 | +msgid "The data model method :meth:`~object.__class_getitem__`." |
| 63 | +msgstr "" |
| 64 | + |
| 65 | +#: ../../c-api/typehints.rst:44 |
| 66 | +msgid "" |
| 67 | +"The C type of the object returned by :c:func:`Py_GenericAlias`. Equivalent " |
| 68 | +"to :class:`types.GenericAlias` in Python." |
| 69 | +msgstr "" |
0 commit comments