python-docs-fr/library/copyreg.po

119 lines
4.5 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Copyright (C) 2001-2018, Python Software Foundation
# For licence information, see README file.
#
msgid ""
msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-07-23 14:38+0200\n"
"PO-Revision-Date: 2018-11-23 15:14+0100\n"
"Last-Translator: Jules Lasne <jules.lasne@gmail.com>\n"
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2\n"
#: library/copyreg.rst:2
msgid ":mod:`copyreg` --- Register :mod:`pickle` support functions"
msgstr ":mod:`copyreg` — Enregistre les fonctions support de :mod:`pickle`"
#: library/copyreg.rst:7
msgid "**Source code:** :source:`Lib/copyreg.py`"
msgstr "**Code source :** :source:`Lib/copyreg.py`"
#: library/copyreg.rst:15
msgid ""
"The :mod:`copyreg` module offers a way to define functions used while "
"pickling specific objects. The :mod:`pickle` and :mod:`copy` modules use "
"those functions when pickling/copying those objects. The module provides "
"configuration information about object constructors which are not classes. "
"Such constructors may be factory functions or class instances."
msgstr ""
"Le module :mod:`copyreg` permet de définir des fonctions utilisées durant la "
"sérialisation avec *pickle* de certains objets. Les modules :mod:`pickle` "
"et :mod:`copy` utilisent ces fonctions lors d'une sérialisation ou d'une "
"copie de ces objets. Le module propose alors des informations de "
"configuration à propos de constructeurs d'objets qui ne sont pas des "
"classes. De tels constructeurs peuvent être des instances de classes ou des "
"fonctions."
#: library/copyreg.rst:24
msgid ""
"Declares *object* to be a valid constructor. If *object* is not callable "
"(and hence not valid as a constructor), raises :exc:`TypeError`."
msgstr ""
"Déclare *object* comme étant un constructeur valide. Si *object* n'est pas "
"appelable (et n'est donc pas un constructeur valide), l'erreur :exc:"
"`TypeError` est levée."
#: library/copyreg.rst:30
#, fuzzy
msgid ""
"Declares that *function* should be used as a \"reduction\" function for "
"objects of type *type*. *function* must return either a string or a tuple "
"containing between two and six elements. See the :attr:`~pickle.Pickler."
"dispatch_table` for more details on the interface of *function*."
msgstr ""
"Déclare que *function* devrait être utilisée en tant que fonction de "
"*réduction* pour des objets de type *type*. *function* doit soit renvoyer "
"une chaîne de caractères soit un *n*-uplet qui contient deux ou trois "
"éléments."
#: library/copyreg.rst:35
msgid ""
"The *constructor_ob* parameter is a legacy feature and is now ignored, but "
"if passed it must be a callable."
msgstr ""
#: library/copyreg.rst:38
#, fuzzy
msgid ""
"Note that the :attr:`~pickle.Pickler.dispatch_table` attribute of a pickler "
"object or subclass of :class:`pickle.Pickler` can also be used for declaring "
"reduction functions."
msgstr ""
"Voir le module :mod:`pickle` pour plus de détails sur l'interface attendue "
"de *function* et *constructor*. Notez que lattribut :attr:`~pickle.Pickler."
"dispatch_table` d'un objet ``pickler`` ou d'une sous-classe de :class:"
"`pickle.Pickler` peut aussi être utilisée pour déclarer des fonctions "
"réductrices."
#: library/copyreg.rst:43
msgid "Example"
msgstr "Exemple"
#: library/copyreg.rst:45
msgid ""
"The example below would like to show how to register a pickle function and "
"how it will be used:"
msgstr ""
"L'exemple si-dessous essaye de démontrer comment enregistrer une fonction "
"*pickle* et comment elle sera utilisée :"
#: library/copyreg.rst:9
msgid "module"
msgstr ""
#: library/copyreg.rst:9
msgid "pickle"
msgstr ""
#: library/copyreg.rst:9
msgid "copy"
msgstr ""
#, fuzzy
#~ msgid ""
#~ "The optional *constructor* parameter, if provided, is a callable object "
#~ "which can be used to reconstruct the object when called with the tuple of "
#~ "arguments returned by *function* at pickling time. A :exc:`TypeError` is "
#~ "raised if the *constructor* is not callable."
#~ msgstr ""
#~ "Le paramètre optionnel *contructor*, s'il est donné, est un objet "
#~ "appelable qui peux être utilisé pour reconstruire lobjet lorsqu'il est "
#~ "appelé avec un *n*-uplet d'arguments renvoyés par *function* durant la "
#~ "sérialisation avec *pickle*. Une exception :exc:`TypeError` est levée si "
#~ "*object* est une classe ou si *constructor* n'est pas appelable."