houedji.espoir
66309f9360
All checks were successful
ci/woodpecker/pr/woodpecker Pipeline was successful
121 lines
4.0 KiB
Plaintext
121 lines
4.0 KiB
Plaintext
# 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: 2023-11-14 22:46+0100\n"
|
|
"Last-Translator: Houedji Espoir <therencecossi@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 3.2.2\n"
|
|
|
|
#: library/io.rst:2
|
|
msgid ":mod:`io` --- Core tools for working with streams"
|
|
msgstr ":mod:`io` — Outils de base pour l'utilisation des flux"
|
|
|
|
#: library/io.rst:15
|
|
msgid "**Source code:** :source:`Lib/io.py`"
|
|
msgstr "**Code source:** :source:`Lib/io.py`"
|
|
|
|
#: library/io.rst:22
|
|
msgid "Overview"
|
|
msgstr "Aperçu"
|
|
|
|
#: library/io.rst:27
|
|
msgid ""
|
|
"The :mod:`io` module provides Python's main facilities for dealing with "
|
|
"various types of I/O. There are three main types of I/O: *text I/O*, "
|
|
"*binary I/O* and *raw I/O*. These are generic categories, and various "
|
|
"backing stores can be used for each of them. A concrete object belonging to "
|
|
"any of these categories is called a :term:`file object`. Other common terms "
|
|
"are *stream* and *file-like object*."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:34
|
|
msgid ""
|
|
"Independent of its category, each concrete stream object will also have "
|
|
"various capabilities: it can be read-only, write-only, or read-write. It can "
|
|
"also allow arbitrary random access (seeking forwards or backwards to any "
|
|
"location), or only sequential access (for example in the case of a socket or "
|
|
"pipe)."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:40
|
|
msgid ""
|
|
"All streams are careful about the type of data you give to them. For "
|
|
"example giving a :class:`str` object to the ``write()`` method of a binary "
|
|
"stream will raise a :exc:`TypeError`. So will giving a :class:`bytes` "
|
|
"object to the ``write()`` method of a text stream."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:45
|
|
msgid ""
|
|
"Operations that used to raise :exc:`IOError` now raise :exc:`OSError`, "
|
|
"since :exc:`IOError` is now an alias of :exc:`OSError`."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:855 library/io.rst:1122
|
|
msgid "Text I/O"
|
|
msgstr "Entrée/sortie de texte"
|
|
|
|
#: library/io.rst:53
|
|
msgid ""
|
|
"Text I/O expects and produces :class:`str` objects. This means that "
|
|
"whenever the backing store is natively made of bytes (such as in the case of "
|
|
"a file), encoding and decoding of data is made transparently as well as "
|
|
"optional translation of platform-specific newline characters."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:58
|
|
msgid ""
|
|
"The easiest way to create a text stream is with :meth:`open()`, optionally "
|
|
"specifying an encoding::"
|
|
msgstr ""
|
|
"Le moyen le plus simple de créer un flux de texte est d'utiliser la méthode :"
|
|
"meth:`open()` en spécifiant éventuellement un encodage ::"
|
|
|
|
#: library/io.rst:63
|
|
msgid ""
|
|
"In-memory text streams are also available as :class:`StringIO` objects::"
|
|
msgstr ""
|
|
"Les flux de texte en mémoire sont également disponible sous forme d'objets :"
|
|
"class:`StringIO` ::"
|
|
|
|
#: library/io.rst:67
|
|
msgid ""
|
|
"The text stream API is described in detail in the documentation of :class:"
|
|
"`TextIOBase`."
|
|
msgstr ""
|
|
"L'API de flux textuel est décrit en détail dans la documentation de la "
|
|
"classe :class:`TextIOBase`."
|
|
|
|
#: library/io.rst:1110
|
|
msgid "Binary I/O"
|
|
msgstr ""
|
|
|
|
#: library/io.rst:74
|
|
msgid ""
|
|
"Binary I/O (also called *buffered I/O*) expects :term:`bytes-like objects "
|
|
"<bytes-like object>` and produces :class:`bytes` objects. No encoding, "
|
|
"decoding, or newline translation is performed. This category of streams can "
|
|
"be used for all kinds of non-text data, and also when manual control over "
|
|
"the handling of text data is desired."
|
|
msgstr ""
|
|
|
|
#: library/io.rst:80
|
|
msgid ""
|
|
"The easiest way to create a binary stream is with :meth:`open()` with "
|
|
"``'b'`` in the mode string::"
|
|
msgstr ""
|
|
|
|
#: library/io.rst:85
|
|
msgid ""
|
|
"In-memory binary streams are also available as :class:`BytesIO` objects::"
|
|
msgstr ""
|