1
0
Fork 0
python-docs-fr/library/types.po

368 lines
11 KiB
Plaintext
Raw Normal View History

2016-10-30 09:46:26 +00:00
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2016, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
2017-08-09 22:23:54 +00:00
"POT-Creation-Date: 2017-08-10 00:49+0200\n"
2016-10-30 09:46:26 +00:00
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.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/library/types.rst:2
msgid ":mod:`types` --- Dynamic type creation and names for built-in types"
msgstr ""
#: ../Doc/library/types.rst:7
msgid "**Source code:** :source:`Lib/types.py`"
msgstr "**Code source :** :source:`Lib/types.py`"
#: ../Doc/library/types.rst:11
msgid ""
"This module defines utility function to assist in dynamic creation of new "
"types."
msgstr ""
#: ../Doc/library/types.rst:14
msgid ""
"It also defines names for some object types that are used by the standard "
"Python interpreter, but not exposed as builtins like :class:`int` or :class:"
"`str` are."
msgstr ""
#: ../Doc/library/types.rst:18
msgid ""
"Finally, it provides some additional type-related utility classes and "
"functions that are not fundamental enough to be builtins."
msgstr ""
#: ../Doc/library/types.rst:23
msgid "Dynamic Type Creation"
msgstr ""
#: ../Doc/library/types.rst:27
msgid "Creates a class object dynamically using the appropriate metaclass."
msgstr ""
#: ../Doc/library/types.rst:29
msgid ""
"The first three arguments are the components that make up a class definition "
"header: the class name, the base classes (in order), the keyword arguments "
"(such as ``metaclass``)."
msgstr ""
#: ../Doc/library/types.rst:33
msgid ""
"The *exec_body* argument is a callback that is used to populate the freshly "
"created class namespace. It should accept the class namespace as its sole "
"argument and update the namespace directly with the class contents. If no "
"callback is provided, it has the same effect as passing in ``lambda ns: ns``."
msgstr ""
#: ../Doc/library/types.rst:43
msgid "Calculates the appropriate metaclass and creates the class namespace."
msgstr ""
#: ../Doc/library/types.rst:45
msgid ""
"The arguments are the components that make up a class definition header: the "
"class name, the base classes (in order) and the keyword arguments (such as "
"``metaclass``)."
msgstr ""
#: ../Doc/library/types.rst:49
msgid "The return value is a 3-tuple: ``metaclass, namespace, kwds``"
msgstr ""
#: ../Doc/library/types.rst:51
msgid ""
"*metaclass* is the appropriate metaclass, *namespace* is the prepared class "
"namespace and *kwds* is an updated copy of the passed in *kwds* argument "
"with any ``'metaclass'`` entry removed. If no *kwds* argument is passed in, "
"this will be an empty dict."
msgstr ""
#: ../Doc/library/types.rst:60
msgid ""
"The default value for the ``namespace`` element of the returned tuple has "
"changed. Now an insertion-order-preserving mapping is used when the "
"metaclass does not have a ``__prepare__`` method,"
msgstr ""
#: ../Doc/library/types.rst:67
msgid ":ref:`metaclasses`"
msgstr ""
#: ../Doc/library/types.rst:67
msgid "Full details of the class creation process supported by these functions"
msgstr ""
#: ../Doc/library/types.rst:69
msgid ":pep:`3115` - Metaclasses in Python 3000"
msgstr ""
#: ../Doc/library/types.rst:70
msgid "Introduced the ``__prepare__`` namespace hook"
msgstr ""
#: ../Doc/library/types.rst:74
msgid "Standard Interpreter Types"
msgstr ""
#: ../Doc/library/types.rst:76
msgid ""
"This module provides names for many of the types that are required to "
"implement a Python interpreter. It deliberately avoids including some of the "
"types that arise only incidentally during processing such as the "
"``listiterator`` type."
msgstr ""
#: ../Doc/library/types.rst:81
msgid ""
"Typical use of these names is for :func:`isinstance` or :func:`issubclass` "
"checks."
msgstr ""
#: ../Doc/library/types.rst:84
msgid "Standard names are defined for the following types:"
msgstr ""
#: ../Doc/library/types.rst:89
msgid ""
"The type of user-defined functions and functions created by :keyword:"
"`lambda` expressions."
msgstr ""
#: ../Doc/library/types.rst:95
msgid ""
"The type of :term:`generator`-iterator objects, created by generator "
"functions."
msgstr ""
#: ../Doc/library/types.rst:101
msgid ""
"The type of :term:`coroutine` objects, created by :keyword:`async def` "
"functions."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:109
msgid ""
"The type of :term:`asynchronous generator`-iterator objects, created by "
"asynchronous generator functions."
msgstr ""
#: ../Doc/library/types.rst:119
2016-10-30 09:46:26 +00:00
msgid "The type for code objects such as returned by :func:`compile`."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:124
2016-10-30 09:46:26 +00:00
msgid "The type of methods of user-defined class instances."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:130
2016-10-30 09:46:26 +00:00
msgid ""
"The type of built-in functions like :func:`len` or :func:`sys.exit`, and "
"methods of built-in classes. (Here, the term \"built-in\" means \"written "
"in C\".)"
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:137
2016-10-30 09:46:26 +00:00
msgid ""
"The type of :term:`modules <module>`. Constructor takes the name of the "
"module to be created and optionally its :term:`docstring`."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:141
2016-10-30 09:46:26 +00:00
msgid ""
"Use :func:`importlib.util.module_from_spec` to create a new module if you "
"wish to set the various import-controlled attributes."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:146
2016-10-30 09:46:26 +00:00
msgid "The :term:`docstring` of the module. Defaults to ``None``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:150
2016-10-30 09:46:26 +00:00
msgid "The :term:`loader` which loaded the module. Defaults to ``None``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:152 ../Doc/library/types.rst:166
2016-10-30 09:46:26 +00:00
msgid "Defaults to ``None``. Previously the attribute was optional."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:157
2016-10-30 09:46:26 +00:00
msgid "The name of the module."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:161
2016-10-30 09:46:26 +00:00
msgid ""
"Which :term:`package` a module belongs to. If the module is top-level (i.e. "
"not a part of any specific package) then the attribute should be set to "
"``''``, else it should be set to the name of the package (which can be :attr:"
"`__name__` if the module is a package itself). Defaults to ``None``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:172
2016-10-30 09:46:26 +00:00
msgid "The type of traceback objects such as found in ``sys.exc_info()[2]``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:177
2016-10-30 09:46:26 +00:00
msgid ""
"The type of frame objects such as found in ``tb.tb_frame`` if ``tb`` is a "
"traceback object."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:183
2016-10-30 09:46:26 +00:00
msgid ""
"The type of objects defined in extension modules with ``PyGetSetDef``, such "
"as ``FrameType.f_locals`` or ``array.array.typecode``. This type is used as "
"descriptor for object attributes; it has the same purpose as the :class:"
"`property` type, but for classes defined in extension modules."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:191
2016-10-30 09:46:26 +00:00
msgid ""
"The type of objects defined in extension modules with ``PyMemberDef``, such "
"as ``datetime.timedelta.days``. This type is used as descriptor for simple "
"C data members which use standard conversion functions; it has the same "
"purpose as the :class:`property` type, but for classes defined in extension "
"modules."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:198
2016-10-30 09:46:26 +00:00
msgid ""
"In other implementations of Python, this type may be identical to "
"``GetSetDescriptorType``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:203
2016-10-30 09:46:26 +00:00
msgid ""
"Read-only proxy of a mapping. It provides a dynamic view on the mapping's "
"entries, which means that when the mapping changes, the view reflects these "
"changes."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:211
2016-10-30 09:46:26 +00:00
msgid ""
"Return ``True`` if the underlying mapping has a key *key*, else ``False``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:216
2016-10-30 09:46:26 +00:00
msgid ""
"Return the item of the underlying mapping with key *key*. Raises a :exc:"
"`KeyError` if *key* is not in the underlying mapping."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:221
2016-10-30 09:46:26 +00:00
msgid ""
"Return an iterator over the keys of the underlying mapping. This is a "
"shortcut for ``iter(proxy.keys())``."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:226
2016-10-30 09:46:26 +00:00
msgid "Return the number of items in the underlying mapping."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:230
2016-10-30 09:46:26 +00:00
msgid "Return a shallow copy of the underlying mapping."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:234
2016-10-30 09:46:26 +00:00
msgid ""
"Return the value for *key* if *key* is in the underlying mapping, else "
"*default*. If *default* is not given, it defaults to ``None``, so that this "
"method never raises a :exc:`KeyError`."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:240
2016-10-30 09:46:26 +00:00
msgid ""
"Return a new view of the underlying mapping's items (``(key, value)`` pairs)."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:245
2016-10-30 09:46:26 +00:00
msgid "Return a new view of the underlying mapping's keys."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:249
2016-10-30 09:46:26 +00:00
msgid "Return a new view of the underlying mapping's values."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:253
2016-10-30 09:46:26 +00:00
msgid "Additional Utility Classes and Functions"
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:257
2016-10-30 09:46:26 +00:00
msgid ""
"A simple :class:`object` subclass that provides attribute access to its "
"namespace, as well as a meaningful repr."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:260
2016-10-30 09:46:26 +00:00
msgid ""
"Unlike :class:`object`, with ``SimpleNamespace`` you can add and remove "
"attributes. If a ``SimpleNamespace`` object is initialized with keyword "
"arguments, those are directly added to the underlying namespace."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:264
2016-10-30 09:46:26 +00:00
msgid "The type is roughly equivalent to the following code::"
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:278
2016-10-30 09:46:26 +00:00
msgid ""
"``SimpleNamespace`` may be useful as a replacement for ``class NS: pass``. "
"However, for a structured record type use :func:`~collections.namedtuple` "
"instead."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:287
2016-10-30 09:46:26 +00:00
msgid "Route attribute access on a class to __getattr__."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:289
2016-10-30 09:46:26 +00:00
msgid ""
"This is a descriptor, used to define attributes that act differently when "
"accessed through an instance and through a class. Instance access remains "
"normal, but access to an attribute through a class will be routed to the "
"class's __getattr__ method; this is done by raising AttributeError."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:294
2016-10-30 09:46:26 +00:00
msgid ""
"This allows one to have properties active on an instance, and have virtual "
"attributes on the class with the same name (see Enum for an example)."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:301
2016-10-30 09:46:26 +00:00
msgid "Coroutine Utility Functions"
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:305
2016-10-30 09:46:26 +00:00
msgid ""
"This function transforms a :term:`generator` function into a :term:"
"`coroutine function` which returns a generator-based coroutine. The "
"generator-based coroutine is still a :term:`generator iterator`, but is also "
"considered to be a :term:`coroutine` object and is :term:`awaitable`. "
"However, it may not necessarily implement the :meth:`__await__` method."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:312
2016-10-30 09:46:26 +00:00
msgid "If *gen_func* is a generator function, it will be modified in-place."
msgstr ""
2017-04-02 20:14:06 +00:00
#: ../Doc/library/types.rst:314
2016-10-30 09:46:26 +00:00
msgid ""
"If *gen_func* is not a generator function, it will be wrapped. If it returns "
"an instance of :class:`collections.abc.Generator`, the instance will be "
"wrapped in an *awaitable* proxy object. All other types of objects will be "
"returned as is."
msgstr ""