Skip to content

Conversation

@laenNoCode
Copy link
Contributor

a little part of the file is a bit suspicious, but most of the job is done

Copy link
Contributor

@christopheNan christopheNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merci pour cette contribution.
Certaines remarques sont générales (espaces insécables avant la ponctuation, renvoie pour return)

c-api/file.po Outdated
"`io` APIs instead."
msgstr ""
"Ces API sont une émulation minimale de l'API C Python2 pour les objets "
"fichier natifs, qui sont utilisés pour dépendre du support de l'E/S mise en "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

qui reposaient sur la gestion des entrées-sorties avec tampon (:c:type:FILE\\*) de la bibliothèque standard C.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"Ces API sont une émulation minimale de l'API C Python2 pour les objets "
"fichier natifs, qui sont utilisés pour dépendre du support de l'E/S mise en "
"tampon (:c:type:`FILE\\*`) de la bibliothèque standard C. En Python3, les "
"fichier et les flux utilisent le nouveau module :mod:`io`, qui définit "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

les fichiers

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"tampon (:c:type:`FILE\\*`) de la bibliothèque standard C. En Python3, les "
"fichier et les flux utilisent le nouveau module :mod:`io`, qui définit "
"plusieurs couches par dessus l'E/S bas niveau sans tampon du système "
"d'exploitation. Les fonctions définies ci-dessous sont des enveloppe C de "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Les fonctions définies ci-dessous, écrites en C, encapsulent ces nouvelles APi pour les rendre plus faciles d'utilisation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"failure. For a more comprehensive description of the arguments, please refer "
"to the :func:`io.open` function documentation."
msgstr ""
"Crée un objet fichier Python depuis le descripteur d'un fichier déjà ouvert "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/depuis/à partir de/ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
msgstr ""
"Crée un objet fichier Python depuis le descripteur d'un fichier déjà ouvert "
"*fd*. Les arguments *name*, *encoding*, *errors* et *newline* peuvent être "
"*NULL* pour utiliser ceux par défaut; *buffering* peut être *-1* pour "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il manque une espace insécable avant le point-virgule.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"*p*. *p* peut être un objet fichier ou n'importe quel objet qui possède une "
"méthode :meth:`~io.IOBase.readline`. Si *n* est ``0``, une seule ligne est "
"lue, indépendamment de la taille de la ligne. Si *n* est plus grand que "
"``0``, un maximum de *n* octets seront lus en provenance du fichie; une "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/fichie/fichier /

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"instead of the :func:`repr`. Return ``0`` on success or ``-1`` on failure; "
"the appropriate exception will be set."
msgstr ""
"Écrit l'objet *obj* dans l'objet fichier *p*. Le seul drapeau supporté pour "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Le seul drapeau supporté/La seule option gérée/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
"*flags* est :const:`Py_PRINT_RAW`; si défini, l'attribut :func:`str` de "
"l'objet est écrit à la place de l'attribut :func:`repr`. Retourne ``0`` en "
"cas de succès ou ``-1`` en cas échec; l'exception appropriée sera mise en "
"place."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/mise en place/levée/ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé, mais je ne suis pas sûr étant donné que l'anglais préfèrera raise pour lever une exception

c-api/file.po Outdated
"Write string *s* to file object *p*. Return ``0`` on success or ``-1`` on "
"failure; the appropriate exception will be set."
msgstr ""
"Écrit la chaîne de caractère *s* dans l'objet fichier *p*. Retourne ``0`` en "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

caractères

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

c-api/file.po Outdated
msgstr ""
"Cette fonction, équivalente à ``p.readline([n])``, lit une ligne de l'objet "
"*p*. *p* peut être un objet fichier ou n'importe quel objet qui possède une "
"méthode :meth:`~io.IOBase.readline`. Si *n* est ``0``, une seule ligne est "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Si n vaut 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrigé

@JulienPalard
Copy link
Member

pospell whines on "l'API" by error, I have to fix it, I'll fix pospell first and merge then.

@JulienPalard JulienPalard merged commit a0fe8de into python:3.7 Oct 18, 2018
@JulienPalard
Copy link
Member

Fixé et mergé, merci pour ta PR @laenNoCode !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants