python-docs-fr/c-api/type.po

286 lines
7.8 KiB
Plaintext
Raw Normal View History

2018-07-04 09:06:45 +00:00
# Copyright (C) 2001-2018, Python Software Foundation
2018-07-04 09:08:42 +00:00
# For licence information, see README file.
2016-10-30 09:46:26 +00:00
#
msgid ""
msgstr ""
2019-12-05 22:15:54 +00:00
"Project-Id-Version: Python 3\n"
2016-10-30 09:46:26 +00:00
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-11-15 18:54+0100\n"
"PO-Revision-Date: 2018-02-15 00:33+0100\n"
2016-10-30 09:46:26 +00:00
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
2018-07-04 09:14:25 +00:00
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
2017-05-23 22:40:56 +00:00
"Language: fr\n"
2016-10-30 09:46:26 +00:00
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../Doc/c-api/type.rst:6
msgid "Type Objects"
msgstr "Objets type"
2016-10-30 09:46:26 +00:00
#: ../Doc/c-api/type.rst:13
msgid "The C structure of the objects used to describe built-in types."
msgstr ""
#: ../Doc/c-api/type.rst:18
msgid ""
"This is the type object for type objects; it is the same object as :class:"
"`type` in the Python layer."
msgstr ""
#: ../Doc/c-api/type.rst:24
msgid ""
"Return true if the object *o* is a type object, including instances of types "
"derived from the standard type object. Return false in all other cases."
msgstr ""
#: ../Doc/c-api/type.rst:30
msgid ""
"Return true if the object *o* is a type object, but not a subtype of the "
"standard type object. Return false in all other cases."
msgstr ""
#: ../Doc/c-api/type.rst:36
msgid "Clear the internal lookup cache. Return the current version tag."
msgstr ""
#: ../Doc/c-api/type.rst:40
msgid ""
"Return the :c:member:`~PyTypeObject.tp_flags` member of *type*. This "
"function is primarily meant for use with `Py_LIMITED_API`; the individual "
"flag bits are guaranteed to be stable across Python releases, but access to :"
"c:member:`~PyTypeObject.tp_flags` itself is not part of the limited API."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:47
msgid "The return type is now ``unsigned long`` rather than ``long``."
msgstr ""
#: ../Doc/c-api/type.rst:53
2016-10-30 09:46:26 +00:00
msgid ""
"Invalidate the internal lookup cache for the type and all of its subtypes. "
"This function must be called after any manual modification of the attributes "
"or base classes of the type."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:60
2016-10-30 09:46:26 +00:00
msgid ""
"Return true if the type object *o* sets the feature *feature*. Type "
"features are denoted by single bit flags."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:66
2016-10-30 09:46:26 +00:00
msgid ""
"Return true if the type object includes support for the cycle detector; this "
"tests the type flag :const:`Py_TPFLAGS_HAVE_GC`."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:72
2016-10-30 09:46:26 +00:00
msgid "Return true if *a* is a subtype of *b*."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:74
2016-10-30 09:46:26 +00:00
msgid ""
"This function only checks for actual subtypes, which means that :meth:"
"`~class.__subclasscheck__` is not called on *b*. Call :c:func:"
"`PyObject_IsSubclass` to do the same check that :func:`issubclass` would do."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:82
2016-10-30 09:46:26 +00:00
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_alloc` slot of a type "
"object. Use Python's default memory allocation mechanism to allocate a new "
"instance and initialize all its contents to ``NULL``."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:88
2016-10-30 09:46:26 +00:00
msgid ""
"Generic handler for the :c:member:`~PyTypeObject.tp_new` slot of a type "
"object. Create a new instance using the type's :c:member:`~PyTypeObject."
"tp_alloc` slot."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:93
2016-10-30 09:46:26 +00:00
msgid ""
"Finalize a type object. This should be called on all type objects to finish "
"their initialization. This function is responsible for adding inherited "
"slots from a type's base class. Return ``0`` on success, or return ``-1`` "
"and sets an exception on error."
msgstr ""
2018-12-24 13:20:55 +00:00
#: ../Doc/c-api/type.rst:100
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"Return the function pointer stored in the given slot. If the result is "
"``NULL``, this indicates that either the slot is ``NULL``, or that the "
"function was called with invalid parameters. Callers will typically cast the "
"result pointer into the appropriate function type."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/c-api/type.rst:106
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"See :c:member:`PyType_Slot.slot` for possible values of the *slot* argument."
2016-10-30 09:46:26 +00:00
msgstr ""
2019-09-04 09:35:23 +00:00
#: ../Doc/c-api/type.rst:108
msgid "An exception is raised if *type* is not a heap type."
msgstr ""
#: ../Doc/c-api/type.rst:114
msgid "Creating Heap-Allocated Types"
msgstr ""
#: ../Doc/c-api/type.rst:116
2016-10-30 09:46:26 +00:00
msgid ""
2019-09-04 09:35:23 +00:00
"The following functions and structs are used to create :ref:`heap types "
"<heap-types>`."
msgstr ""
#: ../Doc/c-api/type.rst:121
2019-10-09 16:10:12 +00:00
msgid ""
"Creates and returns a heap type object from the *spec* (:const:"
"`Py_TPFLAGS_HEAPTYPE`)."
2019-09-04 09:35:23 +00:00
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:124
2019-09-04 09:35:23 +00:00
msgid ""
"If *bases* is a tuple, the created heap type contains all types contained in "
"it as base types."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:127
2019-09-04 09:35:23 +00:00
msgid ""
"If *bases* is ``NULL``, the *Py_tp_base* slot is used instead. If that also "
"is ``NULL``, the new type derives from :class:`object`."
2019-09-04 09:35:23 +00:00
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:130
2019-09-04 09:35:23 +00:00
msgid "This function calls :c:func:`PyType_Ready` on the new type."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:136
2019-09-04 09:35:23 +00:00
msgid "Equivalent to ``PyType_FromSpecWithBases(spec, NULL)``."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:140
2019-09-04 09:35:23 +00:00
msgid "Structure defining a type's behavior."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:144
2019-09-04 09:35:23 +00:00
msgid "Name of the type, used to set :c:member:`PyTypeObject.tp_name`."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:149
2019-09-04 09:35:23 +00:00
msgid ""
"Size of the instance in bytes, used to set :c:member:`PyTypeObject."
"tp_basicsize` and :c:member:`PyTypeObject.tp_itemsize`."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:155
2019-09-04 09:35:23 +00:00
msgid "Type flags, used to set :c:member:`PyTypeObject.tp_flags`."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:157
2019-09-04 09:35:23 +00:00
msgid ""
"If the ``Py_TPFLAGS_HEAPTYPE`` flag is not set, :c:func:"
"`PyType_FromSpecWithBases` sets it automatically."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:162
2019-09-04 09:35:23 +00:00
msgid ""
"Array of :c:type:`PyType_Slot` structures. Terminated by the special slot "
"value ``{0, NULL}``."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:167
2019-09-04 09:35:23 +00:00
msgid ""
"Structure defining optional functionality of a type, containing a slot ID "
"and a value pointer."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:172
2019-09-04 09:35:23 +00:00
msgid "A slot ID."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:174
2019-09-04 09:35:23 +00:00
msgid ""
"Slot IDs are named like the field names of the structures :c:type:"
"`PyTypeObject`, :c:type:`PyNumberMethods`, :c:type:`PySequenceMethods`, :c:"
"type:`PyMappingMethods` and :c:type:`PyAsyncMethods` with an added ``Py_`` "
"prefix. For example, use:"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:180
2019-09-04 09:35:23 +00:00
msgid "``Py_tp_dealloc`` to set :c:member:`PyTypeObject.tp_dealloc`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:181
2019-09-04 09:35:23 +00:00
msgid "``Py_nb_add`` to set :c:member:`PyNumberMethods.nb_add`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:182
2019-09-04 09:35:23 +00:00
msgid "``Py_sq_length`` to set :c:member:`PySequenceMethods.sq_length`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:184
2019-09-04 09:35:23 +00:00
msgid ""
"The following fields cannot be set using :c:type:`PyType_Spec` and :c:type:"
"`PyType_Slot`:"
2019-09-04 09:35:23 +00:00
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:186
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_dict`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:187
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_mro`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:188
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_cache`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:189
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_subclasses`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:190
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_weaklist`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:191
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_print`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:192
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_weaklistoffset`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:193
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyTypeObject.tp_dictoffset`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:194
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyBufferProcs.bf_getbuffer`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:195
2019-09-04 09:35:23 +00:00
msgid ":c:member:`~PyBufferProcs.bf_releasebuffer`"
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:197
2019-09-04 09:35:23 +00:00
msgid ""
"Setting :c:data:`Py_tp_bases` may be problematic on some platforms. To avoid "
"issues, use the *bases* argument of :py:func:`PyType_FromSpecWithBases` "
"instead."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:203
2019-09-04 09:35:23 +00:00
msgid ""
"The desired value of the slot. In most cases, this is a pointer to a "
"function."
msgstr ""
2019-10-09 16:10:12 +00:00
#: ../Doc/c-api/type.rst:206
msgid "May not be ``NULL``."
2016-10-30 09:46:26 +00:00
msgstr ""