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

1117 lines
44 KiB
Plaintext
Raw Permalink 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: 2023-01-15 22:33+0100\n"
2022-05-21 11:08:37 +00:00
"PO-Revision-Date: 2022-05-21 10:32+0200\n"
"Last-Translator: Caliendo Julien <caliendo@hotmail.fr>\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"
2022-05-21 11:08:37 +00:00
"X-Generator: Poedit 3.0.1\n"
2016-10-30 09:46:26 +00:00
#: library/json.rst:2
2016-10-30 09:46:26 +00:00
msgid ":mod:`json` --- JSON encoder and decoder"
msgstr ":mod:`json` — Encodage et décodage JSON"
2016-10-30 09:46:26 +00:00
#: library/json.rst:10
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/json/__init__.py`"
2017-08-08 14:47:54 +00:00
msgstr "**Code source :** :source:`Lib/json/__init__.py`"
2016-10-30 09:46:26 +00:00
#: library/json.rst:14
2016-10-30 09:46:26 +00:00
msgid ""
"`JSON (JavaScript Object Notation) <https://json.org>`_, specified by :rfc:"
"`7159` (which obsoletes :rfc:`4627`) and by `ECMA-404 <https://www.ecma-"
"international.org/publications-and-standards/standards/ecma-404/>`_, is a "
"lightweight data interchange format inspired by `JavaScript <https://en."
"wikipedia.org/wiki/JavaScript>`_ object literal syntax (although it is not a "
"strict subset of JavaScript [#rfc-errata]_ )."
2016-10-30 09:46:26 +00:00
msgstr ""
2022-05-21 11:08:37 +00:00
"`JSON (JavaScript Object Notation) <https://json.org>`_, décrit par la :rfc:"
2017-08-08 14:47:54 +00:00
"`7159` (qui rend la :rfc:`4627` obsolète) et par le standard `ECMA-404 "
2022-05-21 11:08:37 +00:00
"<https://www.ecma-international.org/publications-and-standards/standards/"
"ecma-404/>`_, est un format très simple d'échange de données inspiré par la "
"syntaxe des objets littéraux de `JavaScript <https://fr.wikipedia.org/wiki/"
"JavaScript>`_ (bien que ce ne soit pas un sous-ensemble de Javascript [#rfc-"
"errata]_ )."
2016-10-30 09:46:26 +00:00
#: library/json.rst:22
msgid ""
"Be cautious when parsing JSON data from untrusted sources. A malicious JSON "
"string may cause the decoder to consume considerable CPU and memory "
"resources. Limiting the size of data to be parsed is recommended."
msgstr ""
#: library/json.rst:26
2016-10-30 09:46:26 +00:00
msgid ""
":mod:`json` exposes an API familiar to users of the standard library :mod:"
"`marshal` and :mod:`pickle` modules."
msgstr ""
":mod:`json` fournit une API familière aux utilisateurs des modules :mod:"
"`marshal` et :mod:`pickle` de la bibliothèque standard."
2016-10-30 09:46:26 +00:00
#: library/json.rst:29
2016-10-30 09:46:26 +00:00
msgid "Encoding basic Python object hierarchies::"
msgstr "Encodage de quelques objets de base Python ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:48
2016-10-30 09:46:26 +00:00
msgid "Compact encoding::"
msgstr "Encodage compact ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:54
2016-10-30 09:46:26 +00:00
msgid "Pretty printing::"
msgstr "Affichage plus lisible ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:63
2016-10-30 09:46:26 +00:00
msgid "Decoding JSON::"
msgstr "Décodage JSON ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:75
2016-10-30 09:46:26 +00:00
msgid "Specializing JSON object decoding::"
msgstr "Spécialisation du décodage JSON pour un objet ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:90
2016-10-30 09:46:26 +00:00
msgid "Extending :class:`JSONEncoder`::"
msgstr "Extension de la classe :class:`JSONEncoder` ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:108
2018-04-28 22:28:01 +00:00
msgid "Using :mod:`json.tool` from the shell to validate and pretty-print:"
2016-10-30 09:46:26 +00:00
msgstr ""
"Utilisation du module :mod:`json.tool` depuis l'invite de commandes pour "
"valider un flux et l'afficher lisiblement :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:119
2016-10-30 09:46:26 +00:00
msgid "See :ref:`json-commandline` for detailed documentation."
2017-08-08 14:47:54 +00:00
msgstr "Voir :ref:`json-commandline` pour une documentation détaillée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:123
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"JSON is a subset of `YAML <https://yaml.org/>`_ 1.2. The JSON produced by "
2016-10-30 09:46:26 +00:00
"this module's default settings (in particular, the default *separators* "
"value) is also a subset of YAML 1.0 and 1.1. This module can thus also be "
"used as a YAML serializer."
msgstr ""
"JSON est un sous-ensemble de `YAML <http://yaml.org/>`_ 1.2. Le JSON produit "
"par les paramètres par défaut de ce module (en particulier, la valeur par "
"défaut de *separators*) est aussi un sous-ensemble de YAML 1.0 et 1.1. Ce "
"module peut alors aussi être utilisé comme sérialiseur YAML."
2016-10-30 09:46:26 +00:00
#: library/json.rst:130
2019-09-04 09:35:23 +00:00
msgid ""
"This module's encoders and decoders preserve input and output order by "
"default. Order is only lost if the underlying containers are unordered."
msgstr ""
"Les encodeurs et décodeurs de ce module conservent l'ordre d'entrée et de "
"sortie par défaut. L'ordre n'est perdu que si les conteneurs sous-jacents ne "
"sont pas ordonnés."
2019-09-04 09:35:23 +00:00
#: library/json.rst:135
2016-10-30 09:46:26 +00:00
msgid "Basic Usage"
msgstr "Utilisation de base"
2016-10-30 09:46:26 +00:00
#: library/json.rst:142
2016-10-30 09:46:26 +00:00
msgid ""
"Serialize *obj* as a JSON formatted stream to *fp* (a ``.write()``-"
"supporting :term:`file-like object`) using this :ref:`conversion table <py-"
"to-json-table>`."
msgstr ""
"Sérialise *obj* en un flux JSON dans *fp* (un :term:`objet fichier <file-"
"like object>` prenant en charge ``.write()``), en utilisant cette :ref:"
"`table de conversion <py-to-json-table>`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:146
2016-10-30 09:46:26 +00:00
msgid ""
"If *skipkeys* is true (default: ``False``), then dict keys that are not of a "
"basic type (:class:`str`, :class:`int`, :class:`float`, :class:`bool`, "
"``None``) will be skipped instead of raising a :exc:`TypeError`."
msgstr ""
"Si *skipkeys* vaut ``True`` (``False`` par défaut), alors les clefs de "
"dictionnaire qui ne sont pas des types de base (:class:`str`, :class:`int`, :"
"class:`float`, :class:`bool`, ``None``) sont ignorées. Elles provoquent "
2017-08-08 14:47:54 +00:00
"normalement la levée d'une :exc:`TypeError`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:150
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`json` module always produces :class:`str` objects, not :class:"
"`bytes` objects. Therefore, ``fp.write()`` must support :class:`str` input."
msgstr ""
2017-08-08 14:47:54 +00:00
"Le module :mod:`json` produit toujours des objets :class:`str`, et non des "
"objets :class:`bytes`. ``fp.write()`` doit ainsi prendre en charge un objet :"
"class:`str` en entrée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:433
2016-10-30 09:46:26 +00:00
msgid ""
"If *ensure_ascii* is true (the default), the output is guaranteed to have "
"all incoming non-ASCII characters escaped. If *ensure_ascii* is false, "
"these characters will be output as-is."
msgstr ""
"Si *ensure_ascii* vaut ``True`` (valeur par défaut), les caractères non "
"ASCII sont tous échappés à la sortie. Si *ensure_ascii* vaut ``False``, ils "
"sont écrits tels quels."
2016-10-30 09:46:26 +00:00
#: library/json.rst:158
2016-10-30 09:46:26 +00:00
msgid ""
"If *check_circular* is false (default: ``True``), then the circular "
"reference check for container types will be skipped and a circular reference "
2022-03-23 17:40:12 +00:00
"will result in a :exc:`RecursionError` (or worse)."
2016-10-30 09:46:26 +00:00
msgstr ""
"Si *check_circular* vaut ``False`` (``True`` par défaut), la vérification "
"des références circulaires pour les conteneurs est ignorée, et une référence "
2022-05-21 11:08:37 +00:00
"circulaire cause une :exc:`RecursionError` (ou pire)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:162
2016-10-30 09:46:26 +00:00
msgid ""
"If *allow_nan* is false (default: ``True``), then it will be a :exc:"
"`ValueError` to serialize out of range :class:`float` values (``nan``, "
"``inf``, ``-inf``) in strict compliance of the JSON specification. If "
"*allow_nan* is true, their JavaScript equivalents (``NaN``, ``Infinity``, ``-"
"Infinity``) will be used."
msgstr ""
"Si *allow_nan* vaut ``False`` (``True`` par défaut), une :exc:`ValueError` "
"est levée lors de la sérialisation de valeurs :class:`float` extérieures aux "
"bornes (``nan``, ``inf``, ``-inf``), en respect avec la spécification JSON. "
"Si *allow_nan* vaut ``True``, les équivalents JavaScript (``NaN``, "
"``Infinity``, ``-Infinity``) sont utilisés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:452
2016-10-30 09:46:26 +00:00
msgid ""
"If *indent* is a non-negative integer or string, then JSON array elements "
"and object members will be pretty-printed with that indent level. An indent "
"level of 0, negative, or ``\"\"`` will only insert newlines. ``None`` (the "
"default) selects the most compact representation. Using a positive integer "
"indent indents that many spaces per level. If *indent* is a string (such as "
"``\"\\t\"``), that string is used to indent each level."
msgstr ""
2017-08-08 14:47:54 +00:00
"Si *indent* est un nombre entier positif ou une chaîne de caractères, les "
"éléments de tableaux et les membres d'objets JSON sont affichés élégamment "
"avec ce niveau d'indentation. Un niveau d'indentation de 0, négatif, ou "
"``\"\"`` n'insère que des retours à la ligne. ``None`` (la valeur par "
"défaut) choisit la représentation la plus compacte. Utiliser un entier "
"positif pour *indent* indente d'autant d'espaces par niveau. Si *indent* est "
"une chaîne (telle que ``\"\\t\"``), cette chaîne est utilisée pour indenter "
"à chaque niveau."
2016-10-30 09:46:26 +00:00
#: library/json.rst:459
2016-10-30 09:46:26 +00:00
msgid "Allow strings for *indent* in addition to integers."
2017-08-08 14:47:54 +00:00
msgstr "Autorise les chaînes en plus des nombres entiers pour *indent*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:462
2016-10-30 09:46:26 +00:00
msgid ""
"If specified, *separators* should be an ``(item_separator, key_separator)`` "
"tuple. The default is ``(', ', ': ')`` if *indent* is ``None`` and ``(',', "
"': ')`` otherwise. To get the most compact JSON representation, you should "
"specify ``(',', ':')`` to eliminate whitespace."
msgstr ""
"Si spécifié, *separators* doit être un *n*-uplet ``(item_separator, "
2017-08-08 14:47:54 +00:00
"key_separator)``. Sa valeur par défaut est ``(', ', ': ')`` si *indent* est "
"``None``, et ``(',', ': ')`` autrement. Pour obtenir la représentation JSON "
"la plus compacte possible, passez ``(',', ':')`` pour éliminer les espaces."
2016-10-30 09:46:26 +00:00
#: library/json.rst:467
2016-10-30 09:46:26 +00:00
msgid "Use ``(',', ': ')`` as default if *indent* is not ``None``."
2017-08-08 14:47:54 +00:00
msgstr "Utilise ``(',', ': ')`` par défaut si *indent* n'est pas ``None``."
2016-10-30 09:46:26 +00:00
#: library/json.rst:470
2016-10-30 09:46:26 +00:00
msgid ""
"If specified, *default* should be a function that gets called for objects "
"that can't otherwise be serialized. It should return a JSON encodable "
"version of the object or raise a :exc:`TypeError`. If not specified, :exc:"
"`TypeError` is raised."
msgstr ""
2017-08-08 14:47:54 +00:00
"Si spécifié, *default* doit être une fonction qui sera appelée pour les "
"objets qui ne peuvent être sérialisés autrement. Elle doit renvoyer une "
"représentation composée d'objets Python sérialisable en JSON ou lever une :"
"exc:`TypeError`. Si non spécifié, une :exc:`TypeError` est levée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:191
2016-10-30 09:46:26 +00:00
msgid ""
"If *sort_keys* is true (default: ``False``), then the output of dictionaries "
"will be sorted by key."
msgstr ""
"Si *sort_keys* vaut ``True`` (``False`` par défaut), les dictionnaires sont "
2017-08-08 14:47:54 +00:00
"retranscrits triés selon leurs clés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:194
2016-10-30 09:46:26 +00:00
msgid ""
"To use a custom :class:`JSONEncoder` subclass (e.g. one that overrides the :"
"meth:`default` method to serialize additional types), specify it with the "
"*cls* kwarg; otherwise :class:`JSONEncoder` is used."
msgstr ""
2017-08-08 14:47:54 +00:00
"Pour utiliser une sous-classe :class:`JSONEncoder` personnalisée (p. ex. une "
"qui redéfinit la méthode :meth:`default` pour sérialiser des types "
"additionnels), spécifiez-la avec le paramètre nommé *cls* ; autrement, :"
"class:`JSONEncoder` est utilisée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:277
2016-10-30 09:46:26 +00:00
msgid ""
"All optional parameters are now :ref:`keyword-only <keyword-only_parameter>`."
msgstr ""
"tous les paramètres optionnels sont maintenant des :ref:`keyword-only "
2017-08-08 14:47:54 +00:00
"<keyword-only_parameter>`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:203
2016-10-30 09:46:26 +00:00
msgid ""
"Unlike :mod:`pickle` and :mod:`marshal`, JSON is not a framed protocol, so "
"trying to serialize multiple objects with repeated calls to :func:`dump` "
"using the same *fp* will result in an invalid JSON file."
msgstr ""
2017-08-08 14:47:54 +00:00
"À l'inverse de :mod:`pickle` et :mod:`marshal`, JSON n'est pas un protocole "
"par trames, donc essayer de sérialiser plusieurs objets par des appels "
"répétés à :func:`dump` en utilisant le même *fp* résulte en un fichier JSON "
"invalide."
2016-10-30 09:46:26 +00:00
#: library/json.rst:212
2018-09-15 19:51:48 +00:00
msgid ""
"Serialize *obj* to a JSON formatted :class:`str` using this :ref:`conversion "
"table <py-to-json-table>`. The arguments have the same meaning as in :func:"
"`dump`."
msgstr ""
"Sérialise *obj* en une :class:`str` formatée en JSON, en utilisant cette :"
"ref:`table de conversion <py-to-json-table>`. Les arguments ont la même "
2018-09-15 19:51:48 +00:00
"signification que ceux de :func:`dump`."
#: library/json.rst:218
2016-10-30 09:46:26 +00:00
msgid ""
"Keys in key/value pairs of JSON are always of the type :class:`str`. When a "
"dictionary is converted into JSON, all the keys of the dictionary are "
"coerced to strings. As a result of this, if a dictionary is converted into "
"JSON and then back into a dictionary, the dictionary may not equal the "
"original one. That is, ``loads(dumps(x)) != x`` if x has non-string keys."
msgstr ""
"Les clés dans les couples JSON clé-valeur sont toujours de type :class:"
2017-08-08 14:47:54 +00:00
"`str`. Quand un dictionnaire est converti en JSON, toutes les clés du "
"dictionnaire sont transformées en chaînes de caractères. Ce qui fait que si "
"un dictionnaire est converti en JSON et reconverti en dictionnaire, le "
"résultat peut ne pas être égal à l'original. Ainsi, ``loads(dumps(x)) != x`` "
"si x contient des clés qui ne sont pas des chaînes."
2016-10-30 09:46:26 +00:00
#: library/json.rst:227
2016-10-30 09:46:26 +00:00
msgid ""
2018-06-10 09:32:30 +00:00
"Deserialize *fp* (a ``.read()``-supporting :term:`text file` or :term:"
"`binary file` containing a JSON document) to a Python object using this :ref:"
"`conversion table <json-to-py-table>`."
2016-10-30 09:46:26 +00:00
msgstr ""
2018-09-28 12:23:02 +00:00
"Déserialise *fp* (un :term:`text file` ou un :term:`binary file` supportant "
2018-06-10 13:37:51 +00:00
"``.read()`` et contenant un document JSON) vers un objet Python en utilisant "
"cette :ref:`table de conversion <json-to-py-table>`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:231
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"*object_hook* is an optional function that will be called with the result of "
"any object literal decoded (a :class:`dict`). The return value of "
"*object_hook* will be used instead of the :class:`dict`. This feature can "
"be used to implement custom decoders (e.g. `JSON-RPC <https://www.jsonrpc."
2016-10-30 09:46:26 +00:00
"org>`_ class hinting)."
msgstr ""
"*object_hook* est une fonction optionnelle qui est appelée avec le résultat "
2017-08-08 14:47:54 +00:00
"de chaque objet littéral décodé (chaque :class:`dict`). La valeur de retour "
"de *object_hook* est utilisée à la place du :class:`dict`. Cette "
2017-08-08 14:47:54 +00:00
"fonctionnalité peut être utilisée pour implémenter des décodeurs "
"personnalisés (p. ex. les *class hinting* de `JSON-RPC <http://www.jsonrpc."
"org>`_)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:237
2016-10-30 09:46:26 +00:00
msgid ""
"*object_pairs_hook* is an optional function that will be called with the "
"result of any object literal decoded with an ordered list of pairs. The "
"return value of *object_pairs_hook* will be used instead of the :class:"
2018-06-28 13:32:56 +00:00
"`dict`. This feature can be used to implement custom decoders. If "
2016-10-30 09:46:26 +00:00
"*object_hook* is also defined, the *object_pairs_hook* takes priority."
msgstr ""
"*object_pairs_hook* est une fonction optionnelle qui est appelée pour chaque "
2017-08-08 14:47:54 +00:00
"objet littéral décodé, avec une liste ordonnée de couples. La valeur de "
"retour de *object_pairs_hook* est utilisée à la place du :class:`dict`. "
2017-08-08 14:47:54 +00:00
"Cette fonctionnalité peut être utilisée pour implémenter des décodeurs "
2018-07-05 09:39:28 +00:00
"personnalisés. *object_pairs_hook* prend la priorité sur *object_hook*, si "
"cette dernière est aussi définie."
2016-10-30 09:46:26 +00:00
#: library/json.rst:348
2016-10-30 09:46:26 +00:00
msgid "Added support for *object_pairs_hook*."
msgstr "ajout du support de *object_pairs_hook*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:351
2016-10-30 09:46:26 +00:00
msgid ""
"*parse_float*, if specified, will be called with the string of every JSON "
"float to be decoded. By default, this is equivalent to ``float(num_str)``. "
"This can be used to use another datatype or parser for JSON floats (e.g. :"
"class:`decimal.Decimal`)."
msgstr ""
"Si *parse_float* est définie, elle est appelée avec chaque nombre réel JSON "
"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, "
"elle est équivalente à ``float(num_str)``. Cela peut servir à utiliser un "
"autre type de données ou un autre analyseur pour les nombres réels JSON (p. "
"ex. :class:`decimal.Decimal`)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:356
2016-10-30 09:46:26 +00:00
msgid ""
"*parse_int*, if specified, will be called with the string of every JSON int "
"to be decoded. By default, this is equivalent to ``int(num_str)``. This "
"can be used to use another datatype or parser for JSON integers (e.g. :class:"
"`float`)."
msgstr ""
"Si *parse_int* est définie, elle est appelée avec chaque nombre entier JSON "
"à décoder, sous forme d'une chaîne de caractères, en argument. Par défaut, "
"elle est équivalente à ``int(num_str)``. Cela peut servir à utiliser un "
"autre type de données ou un autre analyseur pour les nombres entiers JSON "
"(p. ex. :class:`float`)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:256
msgid ""
"The default *parse_int* of :func:`int` now limits the maximum length of the "
"integer string via the interpreter's :ref:`integer string conversion length "
"limitation <int_max_str_digits>` to help avoid denial of service attacks."
msgstr ""
#: library/json.rst:361
2016-10-30 09:46:26 +00:00
msgid ""
"*parse_constant*, if specified, will be called with one of the following "
"strings: ``'-Infinity'``, ``'Infinity'``, ``'NaN'``. This can be used to "
"raise an exception if invalid JSON numbers are encountered."
msgstr ""
"Si *parse_constant* est définie, elle est appelée quand l'une des chaînes de "
"caractères suivantes est rencontrée : ``'-Infinity'``, ``'Infinity'`` ou "
"``'NaN'``. Cela peut servir à lever une exception si des nombres JSON "
"invalides sont rencontrés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:267
2016-10-30 09:46:26 +00:00
msgid "*parse_constant* doesn't get called on 'null', 'true', 'false' anymore."
2018-09-28 12:23:02 +00:00
msgstr "*parse_constant* n'est plus appelée pour *null*, *true* ou *false*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:270
2016-10-30 09:46:26 +00:00
msgid ""
"To use a custom :class:`JSONDecoder` subclass, specify it with the ``cls`` "
"kwarg; otherwise :class:`JSONDecoder` is used. Additional keyword arguments "
"will be passed to the constructor of the class."
msgstr ""
2017-08-08 14:47:54 +00:00
"Pour utiliser une sous-classe :class:`JSONDecoder` personnalisée, spécifiez-"
"la avec l'argument nommé ``cls`` ; autrement, :class:`JSONDecoder` est "
"utilisée. Les arguments nommés additionnels sont passés au constructeur de "
"cette classe."
2016-10-30 09:46:26 +00:00
#: library/json.rst:292 library/json.rst:371
2016-10-30 09:46:26 +00:00
msgid ""
"If the data being deserialized is not a valid JSON document, a :exc:"
"`JSONDecodeError` will be raised."
msgstr ""
"Si les données à désérialiser ne sont pas un document JSON valide, une :exc:"
"`JSONDecodeError` est levée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:280
2018-06-10 09:32:30 +00:00
msgid ""
"*fp* can now be a :term:`binary file`. The input encoding should be UTF-8, "
"UTF-16 or UTF-32."
msgstr ""
2018-06-10 13:37:51 +00:00
"*fp* peut maintenant être un :class:`binary file`. Son encodage doit être "
"UTF-8, UTF-16 ou UTF-32."
2018-06-10 09:32:30 +00:00
#: library/json.rst:286
2016-10-30 09:46:26 +00:00
msgid ""
"Deserialize *s* (a :class:`str`, :class:`bytes` or :class:`bytearray` "
"instance containing a JSON document) to a Python object using this :ref:"
"`conversion table <json-to-py-table>`."
msgstr ""
2018-09-28 12:23:02 +00:00
"Déserialise *s* (une instance de :class:`str`, :class:`bytes` ou :class:"
2017-08-08 14:47:54 +00:00
"`bytearray` contenant un document JSON) vers un objet Python en utilisant "
"cette :ref:`table de conversion <json-to-py-table>`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:290
2020-07-20 08:56:42 +00:00
msgid "The other arguments have the same meaning as in :func:`load`."
msgstr "Les autres arguments ont la même signification que dans :func:`load`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:295
2017-04-02 20:14:06 +00:00
msgid ""
"*s* can now be of type :class:`bytes` or :class:`bytearray`. The input "
"encoding should be UTF-8, UTF-16 or UTF-32."
msgstr ""
2018-09-28 12:23:02 +00:00
"*s* peut maintenant être de type :class:`bytes` ou :class:`bytearray`. "
2017-08-08 14:47:54 +00:00
"L'encodage d'entrée doit être UTF-8, UTF-16 ou UTF-32."
2017-04-02 20:14:06 +00:00
#: library/json.rst:299
2020-07-20 08:56:42 +00:00
msgid "The keyword argument *encoding* has been removed."
msgstr "suppression de largument nommé *encoding*."
2020-07-20 08:56:42 +00:00
#: library/json.rst:304
2016-10-30 09:46:26 +00:00
msgid "Encoders and Decoders"
2017-08-08 14:47:54 +00:00
msgstr "Encodeurs et décodeurs"
2016-10-30 09:46:26 +00:00
#: library/json.rst:308
2016-10-30 09:46:26 +00:00
msgid "Simple JSON decoder."
2017-08-08 14:47:54 +00:00
msgstr "Décodeur simple JSON."
2016-10-30 09:46:26 +00:00
#: library/json.rst:310
2016-10-30 09:46:26 +00:00
msgid "Performs the following translations in decoding by default:"
2017-08-08 14:47:54 +00:00
msgstr "Applique par défaut les conversions suivantes en décodant :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:404
2016-10-30 09:46:26 +00:00
msgid "JSON"
msgstr "JSON"
#: library/json.rst:404
2016-10-30 09:46:26 +00:00
msgid "Python"
msgstr "Python"
#: library/json.rst:406
2016-10-30 09:46:26 +00:00
msgid "object"
msgstr "objet"
#: library/json.rst:406
2016-10-30 09:46:26 +00:00
msgid "dict"
2017-08-08 14:47:54 +00:00
msgstr "*dict*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:408
2016-10-30 09:46:26 +00:00
msgid "array"
2017-08-08 14:47:54 +00:00
msgstr "*array*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:319
2016-10-30 09:46:26 +00:00
msgid "list"
2017-08-08 14:47:54 +00:00
msgstr "*list*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:410
2016-10-30 09:46:26 +00:00
msgid "string"
2017-08-08 14:47:54 +00:00
msgstr "*string*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:410
2016-10-30 09:46:26 +00:00
msgid "str"
2017-08-08 14:47:54 +00:00
msgstr "*str*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:323
2016-10-30 09:46:26 +00:00
msgid "number (int)"
2017-08-08 14:47:54 +00:00
msgstr "*number* (nombre entier)"
2016-10-30 09:46:26 +00:00
#: library/json.rst:323
2016-10-30 09:46:26 +00:00
msgid "int"
2017-08-08 14:47:54 +00:00
msgstr "*int*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:325
2016-10-30 09:46:26 +00:00
msgid "number (real)"
2017-08-08 14:47:54 +00:00
msgstr "*number* (nombre réel)"
2016-10-30 09:46:26 +00:00
#: library/json.rst:325
2016-10-30 09:46:26 +00:00
msgid "float"
2017-08-08 14:47:54 +00:00
msgstr "*float*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:414
2016-10-30 09:46:26 +00:00
msgid "true"
2017-08-08 14:47:54 +00:00
msgstr "*true*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:414
2016-10-30 09:46:26 +00:00
msgid "True"
2017-08-08 14:47:54 +00:00
msgstr "*True*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:416
2016-10-30 09:46:26 +00:00
msgid "false"
2017-08-08 14:47:54 +00:00
msgstr "*false*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:416
2016-10-30 09:46:26 +00:00
msgid "False"
2017-08-08 14:47:54 +00:00
msgstr "*False*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:418
2016-10-30 09:46:26 +00:00
msgid "null"
2017-08-08 14:47:54 +00:00
msgstr "*null*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:418
2016-10-30 09:46:26 +00:00
msgid "None"
msgstr "``None``"
2016-10-30 09:46:26 +00:00
#: library/json.rst:334
2016-10-30 09:46:26 +00:00
msgid ""
"It also understands ``NaN``, ``Infinity``, and ``-Infinity`` as their "
"corresponding ``float`` values, which is outside the JSON spec."
msgstr ""
2017-08-08 14:47:54 +00:00
"Les valeurs ``NaN``, ``Infinity`` et ``-Infinity`` sont aussi comprises "
"comme leurs valeurs ``float`` correspondantes, bien que ne faisant pas "
"partie de la spécification JSON."
2016-10-30 09:46:26 +00:00
#: library/json.rst:337
#, fuzzy
2016-10-30 09:46:26 +00:00
msgid ""
"*object_hook*, if specified, will be called with the result of every JSON "
"object decoded and its return value will be used in place of the given :"
"class:`dict`. This can be used to provide custom deserializations (e.g. to "
"support `JSON-RPC <https://www.jsonrpc.org>`_ class hinting)."
2016-10-30 09:46:26 +00:00
msgstr ""
"Si *object_hook* est donnée, elle est appelée avec le résultat de chaque "
"objet JSON décodé et sa valeur de retour est utilisée à la place du :class:"
"`dict` fourni. Cette fonctionnalité peut être utilisée pour implémenter des "
"décodeurs personnalisés (p. ex prendre en charge les indications de classe "
"de `JSON-RPC <http://www.jsonrpc.org>`_)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:342
2016-10-30 09:46:26 +00:00
msgid ""
"*object_pairs_hook*, if specified will be called with the result of every "
"JSON object decoded with an ordered list of pairs. The return value of "
"*object_pairs_hook* will be used instead of the :class:`dict`. This feature "
2018-06-28 13:32:56 +00:00
"can be used to implement custom decoders. If *object_hook* is also defined, "
"the *object_pairs_hook* takes priority."
2016-10-30 09:46:26 +00:00
msgstr ""
"Si *object_pairs_hook* est donnée, elle sera appelée avec le résultat de "
"chaque objet JSON décodé avec une liste ordonnée de couples. Sa valeur de "
"retour est utilisée à la place du :class:`dict`. Cette fonctionnalité peut "
"être utilisée pour implémenter des décodeurs personnalisés. "
"*object_pairs_hook* prend la priorité sur *object_hook*, si cette dernière "
"est aussi définie."
2016-10-30 09:46:26 +00:00
#: library/json.rst:366
2016-10-30 09:46:26 +00:00
msgid ""
"If *strict* is false (``True`` is the default), then control characters will "
"be allowed inside strings. Control characters in this context are those "
2017-04-02 20:14:06 +00:00
"with character codes in the 0--31 range, including ``'\\t'`` (tab), "
2016-10-30 09:46:26 +00:00
"``'\\n'``, ``'\\r'`` and ``'\\0'``."
msgstr ""
"Si *strict* vaut ``False`` (``True`` par défaut), alors les caractères de "
"contrôle sont autorisés à l'intérieur des chaînes. Les caractères de "
"contrôle dans ce contexte sont ceux dont les codes sont dans l'intervalle "
"0--31, incluant ``'\\t'`` (tabulation), ``'\\n'``, ``'\\r'`` et ``'\\0'``."
2016-10-30 09:46:26 +00:00
#: library/json.rst:475
2016-10-30 09:46:26 +00:00
msgid "All parameters are now :ref:`keyword-only <keyword-only_parameter>`."
msgstr ""
2017-08-08 14:47:54 +00:00
"Tous les paramètres sont maintenant des :ref:`keyword-only <keyword-"
"only_parameter>`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:379
2016-10-30 09:46:26 +00:00
msgid ""
"Return the Python representation of *s* (a :class:`str` instance containing "
"a JSON document)."
msgstr ""
2017-08-08 14:47:54 +00:00
"Renvoie la représentation Python de *s* (une instance :class:`str` contenant "
"un document JSON)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:382
2016-10-30 09:46:26 +00:00
msgid ""
":exc:`JSONDecodeError` will be raised if the given JSON document is not "
"valid."
msgstr ""
"Une :exc:`JSONDecodeError` est levée si le document JSON donné n'est pas "
2017-08-08 14:47:54 +00:00
"valide."
2016-10-30 09:46:26 +00:00
#: library/json.rst:387
2016-10-30 09:46:26 +00:00
msgid ""
"Decode a JSON document from *s* (a :class:`str` beginning with a JSON "
"document) and return a 2-tuple of the Python representation and the index in "
"*s* where the document ended."
msgstr ""
2017-08-08 14:47:54 +00:00
"Décode en document JSON depuis *s* (une instance :class:`str` débutant par "
"un document JSON) et renvoie un *n*-uplet de 2 éléments contenant la "
2017-08-08 14:47:54 +00:00
"représentation Python de l'objet et l'index dans *s* où le document se "
"terminait."
2016-10-30 09:46:26 +00:00
#: library/json.rst:391
2016-10-30 09:46:26 +00:00
msgid ""
"This can be used to decode a JSON document from a string that may have "
"extraneous data at the end."
msgstr ""
2017-08-08 14:47:54 +00:00
"Elle peut être utilisée pour décoder un document JSON depuis une chaîne qui "
"peut contenir des données supplémentaires à la fin."
2016-10-30 09:46:26 +00:00
#: library/json.rst:397
2016-10-30 09:46:26 +00:00
msgid "Extensible JSON encoder for Python data structures."
2017-08-08 14:47:54 +00:00
msgstr "Encodeur JSON extensible pour les structures de données Python."
2016-10-30 09:46:26 +00:00
#: library/json.rst:399
2016-10-30 09:46:26 +00:00
msgid "Supports the following objects and types by default:"
msgstr "Prend en charge par défaut les objets et types suivants :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:408
2016-10-30 09:46:26 +00:00
msgid "list, tuple"
2017-08-08 14:47:54 +00:00
msgstr "*list*, *tuple*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:412
2016-10-30 09:46:26 +00:00
msgid "int, float, int- & float-derived Enums"
2017-08-08 14:47:54 +00:00
msgstr "*int*, *float*, et *Enums* dérivées d'*int* ou de *float*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:412
2016-10-30 09:46:26 +00:00
msgid "number"
2017-08-08 14:47:54 +00:00
msgstr "*number*"
2016-10-30 09:46:26 +00:00
#: library/json.rst:421
2016-10-30 09:46:26 +00:00
msgid "Added support for int- and float-derived Enum classes."
msgstr ""
"ajout de la prise en charge des classes *Enum* dérivées d'*int* ou de "
"*float*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:424
2016-10-30 09:46:26 +00:00
msgid ""
"To extend this to recognize other objects, subclass and implement a :meth:"
"`default` method with another method that returns a serializable object for "
"``o`` if possible, otherwise it should call the superclass implementation "
"(to raise :exc:`TypeError`)."
msgstr ""
2017-08-08 14:47:54 +00:00
"Pour l'étendre afin de reconnaître d'autres types d'objets, il suffit d'en "
"créer une sous-classe et d'implémenter une nouvelle méthode :meth:`default` "
"qui renvoie un objet sérialisable pour ``o`` si cela est possible, ou bien "
"il convient d'appeler l'implémentation de la classe mère (pour lever une :"
"exc:`TypeError`)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:429
2016-10-30 09:46:26 +00:00
msgid ""
"If *skipkeys* is false (the default), a :exc:`TypeError` will be raised when "
"trying to encode keys that are not :class:`str`, :class:`int`, :class:"
2016-10-30 09:46:26 +00:00
"`float` or ``None``. If *skipkeys* is true, such items are simply skipped."
msgstr ""
"Si *skipkeys* vaut ``False`` (valeur par défaut), une :exc:`TypeError` est "
"levée si la clé encodée n'est pas de type :class:`str`, :class:`int`, :class:"
"`float` ou ``None``. Si *skipkeys* vaut ``True``, ces éléments sont "
"simplement ignorés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:437
2016-10-30 09:46:26 +00:00
msgid ""
"If *check_circular* is true (the default), then lists, dicts, and custom "
"encoded objects will be checked for circular references during encoding to "
2022-03-23 17:40:12 +00:00
"prevent an infinite recursion (which would cause a :exc:`RecursionError`). "
2016-10-30 09:46:26 +00:00
"Otherwise, no such check takes place."
msgstr ""
"Si *check_circular* vaut ``True`` (valeur par défaut), une vérification a "
"lieu sur les listes, dictionnaires et objets personnalisés, afin de détecter "
"les références circulaires et éviter les récursions infinies (qui "
2022-05-21 11:08:37 +00:00
"causeraient une :exc:`RecursionError`). Autrement, la vérification n'a pas "
"lieu."
2016-10-30 09:46:26 +00:00
#: library/json.rst:442
2016-10-30 09:46:26 +00:00
msgid ""
"If *allow_nan* is true (the default), then ``NaN``, ``Infinity``, and ``-"
"Infinity`` will be encoded as such. This behavior is not JSON specification "
"compliant, but is consistent with most JavaScript based encoders and "
"decoders. Otherwise, it will be a :exc:`ValueError` to encode such floats."
msgstr ""
"Si *allow_nan* vaut ``True`` (valeur par défaut), alors ``NaN``, "
"``Infinity`` et ``-Infinity`` sont encodés comme tels. Ce comportement ne "
"respecte pas la spécification JSON, mais est cohérent avec le majorité des "
"encodeurs-décodeurs JavaScript. Autrement, une :exc:`ValueError` est levée "
"pour de telles valeurs."
2016-10-30 09:46:26 +00:00
#: library/json.rst:448
2016-10-30 09:46:26 +00:00
msgid ""
"If *sort_keys* is true (default: ``False``), then the output of dictionaries "
"will be sorted by key; this is useful for regression tests to ensure that "
"JSON serializations can be compared on a day-to-day basis."
msgstr ""
"Si *sort_keys* vaut ``True`` (``False`` par défaut), alors les dictionnaires "
"sont triés par clés en sortie ; cela est utile lors de tests de régression "
2017-08-08 14:47:54 +00:00
"pour pouvoir comparer les sérialisations JSON au jour le jour."
2016-10-30 09:46:26 +00:00
#: library/json.rst:481
2016-10-30 09:46:26 +00:00
msgid ""
"Implement this method in a subclass such that it returns a serializable "
"object for *o*, or calls the base implementation (to raise a :exc:"
"`TypeError`)."
msgstr ""
2017-08-08 14:47:54 +00:00
"Implémentez cette méthode dans une sous-classe afin qu'elle renvoie un objet "
"sérialisable pour *o*, ou appelle l'implémentation de base (qui lèvera une :"
"exc:`TypeError`)."
2016-10-30 09:46:26 +00:00
#: library/json.rst:485
2016-10-30 09:46:26 +00:00
msgid ""
"For example, to support arbitrary iterators, you could implement :meth:"
"`default` like this::"
2016-10-30 09:46:26 +00:00
msgstr ""
"Par exemple, pour prendre en charge les itérations arbitraires, la :meth:"
"`default` peut être écrite ainsi ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:501
2016-10-30 09:46:26 +00:00
msgid ""
"Return a JSON string representation of a Python data structure, *o*. For "
"example::"
msgstr ""
2017-08-08 14:47:54 +00:00
"Renvoie une chaîne JSON représentant la structure de données Python *o*. "
"Par exemple ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:510
2016-10-30 09:46:26 +00:00
msgid ""
"Encode the given object, *o*, and yield each string representation as "
"available. For example::"
msgstr ""
2017-08-08 14:47:54 +00:00
"Encode l'objet *o* donné, et produit chaque chaîne représentant l'objet "
"selon disponibilité. Par exemple ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:518
2016-10-30 09:46:26 +00:00
msgid "Exceptions"
msgstr "Exceptions"
2016-10-30 09:46:26 +00:00
#: library/json.rst:522
2016-10-30 09:46:26 +00:00
msgid "Subclass of :exc:`ValueError` with the following additional attributes:"
msgstr ""
2017-08-08 14:47:54 +00:00
"Sous-classe de :exc:`ValueError` avec les attributs additionnels suivants :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:526
2016-10-30 09:46:26 +00:00
msgid "The unformatted error message."
2017-08-08 14:47:54 +00:00
msgstr "Le message d'erreur non formaté."
2016-10-30 09:46:26 +00:00
#: library/json.rst:530
2016-10-30 09:46:26 +00:00
msgid "The JSON document being parsed."
msgstr "Le document JSON en cours de traitement."
2016-10-30 09:46:26 +00:00
#: library/json.rst:534
2016-10-30 09:46:26 +00:00
msgid "The start index of *doc* where parsing failed."
2017-08-08 14:47:54 +00:00
msgstr "L'index de *doc* à partir duquel l'analyse a échoué."
2016-10-30 09:46:26 +00:00
#: library/json.rst:538
2016-10-30 09:46:26 +00:00
msgid "The line corresponding to *pos*."
2017-08-08 14:47:54 +00:00
msgstr "La ligne correspondant à *pos*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:542
2016-10-30 09:46:26 +00:00
msgid "The column corresponding to *pos*."
2017-08-08 14:47:54 +00:00
msgstr "La colonne correspondant à *pos*."
2016-10-30 09:46:26 +00:00
#: library/json.rst:548
2016-10-30 09:46:26 +00:00
msgid "Standard Compliance and Interoperability"
2017-08-08 14:47:54 +00:00
msgstr "Conformité au standard et Interopérabilité"
2016-10-30 09:46:26 +00:00
#: library/json.rst:550
2016-10-30 09:46:26 +00:00
msgid ""
"The JSON format is specified by :rfc:`7159` and by `ECMA-404 <https://www."
"ecma-international.org/publications-and-standards/standards/ecma-404/>`_. "
"This section details this module's level of compliance with the RFC. For "
"simplicity, :class:`JSONEncoder` and :class:`JSONDecoder` subclasses, and "
"parameters other than those explicitly mentioned, are not considered."
2016-10-30 09:46:26 +00:00
msgstr ""
"Le format JSON est décrit par la :rfc:`7159` et le standard `ECMA-404 "
2022-05-21 11:08:37 +00:00
"<https://www.ecma-international.org/publications-and-standards/standards/"
"ecma-404/>`_. Cette section détaille la conformité à la RFC au niveau du "
"module. Pour faire simple, les sous-classes de :class:`JSONEncoder` et :"
"class:`JSONDecoder`, et les paramètres autres que ceux explicitement "
"mentionnés ne sont pas considérés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:556
2016-10-30 09:46:26 +00:00
msgid ""
"This module does not comply with the RFC in a strict fashion, implementing "
"some extensions that are valid JavaScript but not valid JSON. In particular:"
msgstr ""
2017-08-08 14:47:54 +00:00
"Ce module ne se conforme pas strictement à la RFC, implémentant quelques "
"extensions qui sont valides en JavaScript mais pas en JSON. En particulier :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:559
2016-10-30 09:46:26 +00:00
msgid "Infinite and NaN number values are accepted and output;"
2017-08-08 14:47:54 +00:00
msgstr "Les nombres infinis et *NaN* sont acceptés et retranscrits ;"
2016-10-30 09:46:26 +00:00
#: library/json.rst:560
2016-10-30 09:46:26 +00:00
msgid ""
"Repeated names within an object are accepted, and only the value of the last "
"name-value pair is used."
msgstr ""
2017-08-08 14:47:54 +00:00
"Les noms répétés au sein d'un objet sont acceptés, seule la valeur du "
"dernier couple nom-valeur est utilisée."
2016-10-30 09:46:26 +00:00
#: library/json.rst:563
2016-10-30 09:46:26 +00:00
msgid ""
"Since the RFC permits RFC-compliant parsers to accept input texts that are "
"not RFC-compliant, this module's deserializer is technically RFC-compliant "
"under default settings."
msgstr ""
"Comme la RFC permet aux analyseurs conformes d'accepter en entrée des textes "
"non conformes, le désérialiseur de ce module avec ses paramètres par défaut "
2017-08-08 14:47:54 +00:00
"est techniquement conforme à la RFC."
2016-10-30 09:46:26 +00:00
#: library/json.rst:568
2016-10-30 09:46:26 +00:00
msgid "Character Encodings"
2017-08-08 14:47:54 +00:00
msgstr "Encodage des caractères"
2016-10-30 09:46:26 +00:00
#: library/json.rst:570
2016-10-30 09:46:26 +00:00
msgid ""
"The RFC requires that JSON be represented using either UTF-8, UTF-16, or "
"UTF-32, with UTF-8 being the recommended default for maximum "
"interoperability."
msgstr ""
2017-08-08 14:47:54 +00:00
"La RFC requiert que le JSON soit représenté en utilisant l'encodage UTF-8, "
"UTF-16 ou UTF-32, avec UTF-8 recommandé par défaut pour une interopérabilité "
"maximale."
2016-10-30 09:46:26 +00:00
#: library/json.rst:573
2016-10-30 09:46:26 +00:00
msgid ""
"As permitted, though not required, by the RFC, this module's serializer sets "
"*ensure_ascii=True* by default, thus escaping the output so that the "
"resulting strings only contain ASCII characters."
msgstr ""
2017-08-08 14:47:54 +00:00
"Comme cela est permis par la RFC, bien que non requis, le sérialiseur du "
"module active *ensure_ascii=True* par défaut, échappant ainsi la sortie de "
"façon à ce que les chaînes résultants ne contiennent que des caractères "
"ASCII."
2016-10-30 09:46:26 +00:00
#: library/json.rst:577
2016-10-30 09:46:26 +00:00
msgid ""
"Other than the *ensure_ascii* parameter, this module is defined strictly in "
"terms of conversion between Python objects and :class:`Unicode strings "
"<str>`, and thus does not otherwise directly address the issue of character "
"encodings."
msgstr ""
2017-08-08 14:47:54 +00:00
"Outre le paramètre *ensure_ascii*, les conversions entre objets Python et :"
"class:`chaînes Unicode <str>` de ce module sont strictement définies, et ne "
"résolvent donc pas directement le problème de l'encodage des caractères."
2016-10-30 09:46:26 +00:00
#: library/json.rst:582
2016-10-30 09:46:26 +00:00
msgid ""
"The RFC prohibits adding a byte order mark (BOM) to the start of a JSON "
"text, and this module's serializer does not add a BOM to its output. The RFC "
"permits, but does not require, JSON deserializers to ignore an initial BOM "
"in their input. This module's deserializer raises a :exc:`ValueError` when "
"an initial BOM is present."
msgstr ""
"La RFC interdit d'ajouter un octet marqueur d'ordre (*byte mark order* ou "
"BOM) au début du texte JSON, et le sérialiseur de ce module n'ajoute pas de "
"tel BOM. La RFC permet, mais ne requiert pas, que les désérialiseurs JSON "
"ignorent ces BOM. Le désérialiseur de ce module lève une :exc:`ValueError` "
"quand un BOM est présent au début du fichier."
2016-10-30 09:46:26 +00:00
#: library/json.rst:588
2016-10-30 09:46:26 +00:00
msgid ""
"The RFC does not explicitly forbid JSON strings which contain byte sequences "
"that don't correspond to valid Unicode characters (e.g. unpaired UTF-16 "
"surrogates), but it does note that they may cause interoperability problems. "
"By default, this module accepts and outputs (when present in the original :"
"class:`str`) code points for such sequences."
msgstr ""
2017-08-08 14:47:54 +00:00
"La RFC n'interdit pas explicitement les chaînes JSON contenant des séquences "
"d'octets ne correspondant à aucun caractère Unicode valide (p. ex. les "
2017-08-08 14:47:54 +00:00
"*surrogates* UTF-16 sans correspondance), mais précise que cela peut causer "
"des problèmes d'interopérabilité. Par défaut, ce module accepte et "
"retranscrit (quand présents dans la :class:`str` originale) les *code "
"points* de telles séquences."
2016-10-30 09:46:26 +00:00
#: library/json.rst:596
2016-10-30 09:46:26 +00:00
msgid "Infinite and NaN Number Values"
2017-08-08 14:47:54 +00:00
msgstr "Valeurs numériques infinies et NaN"
2016-10-30 09:46:26 +00:00
#: library/json.rst:598
2016-10-30 09:46:26 +00:00
msgid ""
"The RFC does not permit the representation of infinite or NaN number values. "
"Despite that, by default, this module accepts and outputs ``Infinity``, ``-"
"Infinity``, and ``NaN`` as if they were valid JSON number literal values::"
msgstr ""
2017-08-08 14:47:54 +00:00
"La RFC ne permet pas la représentation des nombres infinis ou des *NaN*. "
"Néanmoins, par défaut, ce module accepte et retranscrit ``Infinity``, ``-"
"Infinity`` et ``NaN`` comme s'ils étaient des valeurs numériques littérales "
"JSON valides ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:613
2016-10-30 09:46:26 +00:00
msgid ""
"In the serializer, the *allow_nan* parameter can be used to alter this "
"behavior. In the deserializer, the *parse_constant* parameter can be used "
"to alter this behavior."
msgstr ""
2017-08-08 14:47:54 +00:00
"Dans le sérialiseur, le paramètre *allow_nan* peut être utilisé pour altérer "
"ce comportement. Dans le désérialiseur, le paramètre *parse_constant* peut "
"être utilisé pour changer ce comportement."
2016-10-30 09:46:26 +00:00
#: library/json.rst:619
2016-10-30 09:46:26 +00:00
msgid "Repeated Names Within an Object"
2017-08-08 14:47:54 +00:00
msgstr "Noms répétés au sein d'un objet"
2016-10-30 09:46:26 +00:00
#: library/json.rst:621
2016-10-30 09:46:26 +00:00
msgid ""
"The RFC specifies that the names within a JSON object should be unique, but "
"does not mandate how repeated names in JSON objects should be handled. By "
"default, this module does not raise an exception; instead, it ignores all "
"but the last name-value pair for a given name::"
msgstr ""
"La RFC précise que les noms au sein d'un objet JSON doivent être uniques, "
2017-08-08 14:47:54 +00:00
"mais ne décrit pas comment les noms répétés doivent être gérés. Par défaut, "
"ce module ne lève pas d'exception ; à la place, il ignore tous les couples "
"nom-valeur sauf le dernier pour un nom donné ::"
2016-10-30 09:46:26 +00:00
#: library/json.rst:630
2016-10-30 09:46:26 +00:00
msgid "The *object_pairs_hook* parameter can be used to alter this behavior."
msgstr ""
"Le paramètre *object_pairs_hook* peut être utilisé pour modifier ce "
2017-08-08 14:47:54 +00:00
"comportement."
2016-10-30 09:46:26 +00:00
#: library/json.rst:634
2016-10-30 09:46:26 +00:00
msgid "Top-level Non-Object, Non-Array Values"
msgstr "Valeurs de plus haut niveau (hors objets ou tableaux)"
2016-10-30 09:46:26 +00:00
#: library/json.rst:636
2016-10-30 09:46:26 +00:00
msgid ""
"The old version of JSON specified by the obsolete :rfc:`4627` required that "
"the top-level value of a JSON text must be either a JSON object or array "
"(Python :class:`dict` or :class:`list`), and could not be a JSON null, "
"boolean, number, or string value. :rfc:`7159` removed that restriction, and "
"this module does not and has never implemented that restriction in either "
"its serializer or its deserializer."
msgstr ""
"L'ancienne version de JSON définie par l'obsolète :rfc:`4627` demandait à ce "
"que la valeur de plus haut niveau du texte JSON soit un objet ou un tableau "
"JSON (:class:`dict` ou :class:`list` Python), et ne soit pas *null*, un "
"nombre, ou une chaîne de caractères. La :rfc:`7159` a supprimé cette "
2017-08-08 14:47:54 +00:00
"restriction, jamais implémentée par ce module, que ce soit dans le "
"sérialiseur ou le désérialiseur."
2016-10-30 09:46:26 +00:00
#: library/json.rst:643
2016-10-30 09:46:26 +00:00
msgid ""
"Regardless, for maximum interoperability, you may wish to voluntarily adhere "
"to the restriction yourself."
msgstr ""
2017-08-08 14:47:54 +00:00
"Cependant, pour une interopérabilité maximale, vous pourriez volontairement "
"souhaiter adhérer à cette restriction."
2016-10-30 09:46:26 +00:00
#: library/json.rst:648
2016-10-30 09:46:26 +00:00
msgid "Implementation Limitations"
2017-08-08 14:47:54 +00:00
msgstr "Limitations de l'implémentation"
2016-10-30 09:46:26 +00:00
#: library/json.rst:650
2016-10-30 09:46:26 +00:00
msgid "Some JSON deserializer implementations may set limits on:"
msgstr ""
"Certaines implémentations de désérialiseurs JSON peuvent avoir des limites "
2017-08-08 14:47:54 +00:00
"sur :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:652
2016-10-30 09:46:26 +00:00
msgid "the size of accepted JSON texts"
2017-08-08 14:47:54 +00:00
msgstr "la taille des textes JSON acceptés ;"
2016-10-30 09:46:26 +00:00
#: library/json.rst:653
2016-10-30 09:46:26 +00:00
msgid "the maximum level of nesting of JSON objects and arrays"
2017-08-08 14:47:54 +00:00
msgstr "le niveau maximum d'objets et tableaux JSON imbriqués ;"
2016-10-30 09:46:26 +00:00
#: library/json.rst:654
2016-10-30 09:46:26 +00:00
msgid "the range and precision of JSON numbers"
2017-08-08 14:47:54 +00:00
msgstr "l'intervalle et la précision des nombres JSON ;"
2016-10-30 09:46:26 +00:00
#: library/json.rst:655
2016-10-30 09:46:26 +00:00
msgid "the content and maximum length of JSON strings"
2017-08-08 14:47:54 +00:00
msgstr "le contenu et la longueur maximale des chaînes JSON."
2016-10-30 09:46:26 +00:00
#: library/json.rst:657
2016-10-30 09:46:26 +00:00
msgid ""
"This module does not impose any such limits beyond those of the relevant "
"Python datatypes themselves or the Python interpreter itself."
msgstr ""
2017-08-08 14:47:54 +00:00
"Ce module n'impose pas de telles limites si ce n'est celles inhérentes aux "
"types de données Python ou à l'interpréteur."
2016-10-30 09:46:26 +00:00
#: library/json.rst:660
2016-10-30 09:46:26 +00:00
msgid ""
"When serializing to JSON, beware any such limitations in applications that "
"may consume your JSON. In particular, it is common for JSON numbers to be "
"deserialized into IEEE 754 double precision numbers and thus subject to that "
"representation's range and precision limitations. This is especially "
"relevant when serializing Python :class:`int` values of extremely large "
"magnitude, or when serializing instances of \"exotic\" numerical types such "
"as :class:`decimal.Decimal`."
msgstr ""
2017-08-08 14:47:54 +00:00
"Lors d'une sérialisation JSON, faites attention à ces limitations dans les "
"applications qui utilisent votre JSON. En particulier, il est courant pour "
"les nombres JSON d'être désérialisés vers des nombres IEEE 754 à précision "
"double, et donc sujets à l'intervalle et aux limitations sur la précision de "
"cette représentation. Cela est d'autant plus important lors de la "
"sérialisation de grands :class:`int` Python, ou d'instances de types "
"numériques « exotiques » comme :class:`decimal.Decimal`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:673
2016-10-30 09:46:26 +00:00
msgid "Command Line Interface"
2017-08-08 14:47:54 +00:00
msgstr "Interface en ligne de commande"
2016-10-30 09:46:26 +00:00
#: library/json.rst:678
2016-10-30 09:46:26 +00:00
msgid "**Source code:** :source:`Lib/json/tool.py`"
2017-08-08 14:47:54 +00:00
msgstr "**Code source :** :source:`Lib/json/tool.py`"
2016-10-30 09:46:26 +00:00
#: library/json.rst:682
2016-10-30 09:46:26 +00:00
msgid ""
"The :mod:`json.tool` module provides a simple command line interface to "
"validate and pretty-print JSON objects."
msgstr ""
2017-08-08 14:47:54 +00:00
"Le module :mod:`json.tool` fournit une simple interface en ligne de commande "
"pour valider et réécrire élégamment des objets JSON."
2016-10-30 09:46:26 +00:00
#: library/json.rst:685
2016-10-30 09:46:26 +00:00
msgid ""
"If the optional ``infile`` and ``outfile`` arguments are not specified, :"
2018-04-28 22:28:01 +00:00
"attr:`sys.stdin` and :attr:`sys.stdout` will be used respectively:"
2016-10-30 09:46:26 +00:00
msgstr ""
2017-08-08 14:47:54 +00:00
"Si les arguments optionnels ``infile`` et ``outfile`` ne sont pas "
"spécifiés, :attr:`sys.stdin` et :attr:`sys.stdout` sont utilisés "
2018-05-08 18:27:09 +00:00
"respectivement :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:697
2016-10-30 09:46:26 +00:00
msgid ""
"The output is now in the same order as the input. Use the :option:`--sort-"
"keys` option to sort the output of dictionaries alphabetically by key."
msgstr ""
2017-08-08 14:47:54 +00:00
"La sortie conserve maintenant l'ordre des données de l'entrée. Utilisez "
"l'option :option:`--sort-keys` pour sortir des dictionnaires triés "
"alphabétiquement par clés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:704
2016-10-30 09:46:26 +00:00
msgid "Command line options"
2017-08-08 14:47:54 +00:00
msgstr "Options de la ligne de commande"
2016-10-30 09:46:26 +00:00
#: library/json.rst:708
2018-04-28 22:28:01 +00:00
msgid "The JSON file to be validated or pretty-printed:"
2018-05-08 18:27:09 +00:00
msgstr "Le fichier JSON à valider ou réécrire élégamment :"
2016-10-30 09:46:26 +00:00
#: library/json.rst:724
2016-10-30 09:46:26 +00:00
msgid "If *infile* is not specified, read from :attr:`sys.stdin`."
msgstr ""
2017-08-08 14:47:54 +00:00
"Si *infile* n'est pas spécifié, lit le document depuis :attr:`sys.stdin`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:728
2016-10-30 09:46:26 +00:00
msgid ""
"Write the output of the *infile* to the given *outfile*. Otherwise, write it "
"to :attr:`sys.stdout`."
msgstr ""
2017-08-08 14:47:54 +00:00
"Écrit la sortie générée par *infile* vers le fichier *outfile* donné. "
"Autrement, écrit sur :attr:`sys.stdout`."
2016-10-30 09:46:26 +00:00
#: library/json.rst:733
2016-10-30 09:46:26 +00:00
msgid "Sort the output of dictionaries alphabetically by key."
2017-08-08 14:47:54 +00:00
msgstr "Trie alphabétiquement les dictionnaires par clés."
2016-10-30 09:46:26 +00:00
#: library/json.rst:739
2020-07-20 08:56:42 +00:00
msgid ""
"Disable escaping of non-ascii characters, see :func:`json.dumps` for more "
"information."
msgstr ""
"Désactive léchappement des caractères non ASCII, voir :func:`json.dumps` "
"pour plus d'informations."
2020-07-20 08:56:42 +00:00
#: library/json.rst:745
2019-09-04 09:35:23 +00:00
msgid "Parse every input line as separate JSON object."
msgstr "Transforme chaque ligne d'entrée en un objet JSON individuel."
2019-09-04 09:35:23 +00:00
#: library/json.rst:751
2020-09-11 07:11:46 +00:00
msgid "Mutually exclusive options for whitespace control."
msgstr "Options mutuellement exclusives de contrôle des espaces."
2020-07-20 08:56:42 +00:00
#: library/json.rst:757
2016-10-30 09:46:26 +00:00
msgid "Show the help message."
2017-08-08 14:47:54 +00:00
msgstr "Affiche le message d'aide."
2016-10-30 09:46:26 +00:00
#: library/json.rst:761
2016-10-30 09:46:26 +00:00
msgid "Footnotes"
msgstr "Notes"
#: library/json.rst:762
2016-10-30 09:46:26 +00:00
msgid ""
"As noted in `the errata for RFC 7159 <https://www.rfc-editor.org/"
"errata_search.php?rfc=7159>`_, JSON permits literal U+2028 (LINE SEPARATOR) "
"and U+2029 (PARAGRAPH SEPARATOR) characters in strings, whereas JavaScript "
"(as of ECMAScript Edition 5.1) does not."
msgstr ""
2017-08-08 14:47:54 +00:00
"Comme noté dans `l'errata de la RFC 7159 <https://www.rfc-editor.org/"
"errata_search.php?rfc=7159>`_, JSON autorise les caractères littéraux U+2028 "
"(*LINE SEPARATOR*) et U+2029 (*PARAGRAPH SEPARATOR*) dans les chaînes de "
"caractères, alors que Javascript (selon le standard ECMAScript édition 5.1) "
"ne le permet pas."
2020-07-20 08:56:42 +00:00
2022-05-22 21:15:02 +00:00
#~ msgid ""
#~ "Prior to Python 3.7, :class:`dict` was not guaranteed to be ordered, so "
#~ "inputs and outputs were typically scrambled unless :class:`collections."
#~ "OrderedDict` was specifically requested. Starting with Python 3.7, the "
#~ "regular :class:`dict` became order preserving, so it is no longer "
#~ "necessary to specify :class:`collections.OrderedDict` for JSON generation "
#~ "and parsing."
#~ msgstr ""
#~ "Avant Python 3.7, :class:`dict` n'était pas garanti d'être ordonné, donc "
#~ "les entrées et sorties étaient mélangées à moins d'utiliser explicitement "
#~ "un :class:`collections.OrderedDict`. Depuis Python 3.7, un :class:`dict` "
#~ "conserve son ordre, il n'est donc plus nécessaire d'utiliser un :class:"
#~ "`collections.OrderedDict` pour générer et analyser du JSON."
2020-07-20 08:56:42 +00:00
#~ msgid "*encoding* keyword argument."
#~ msgstr "L'argument nommé *encodage*."