Skip to content

Je travaille sur c-api/memoryview.po #1173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 30, 2020

Conversation

kw-andy
Copy link
Contributor

@kw-andy kw-andy commented Mar 3, 2020

No description provided.

Copy link
Member

@JulienPalard JulienPalard left a comment

Choose a reason for hiding this comment

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

Traduction difficile, mais dans c-api/ c'est pas surprenant :)

@@ -32,19 +36,28 @@ msgid ""
"will be read/write, otherwise it may be either read-only or read/write at "
"the discretion of the exporter."
msgstr ""
"Crée un objet memoryview à partir d'un objet qui fournit l'interface tampon. "
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être "
Copy link
Member

Choose a reason for hiding this comment

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

If *obj* supports writable buffer exports n'est pas évident à traduire. Dans ta traduction il manque la notion de writable.

Dans tous les cas l'objet permet l'export, sans quoi on ne peut pas créer un memoryview. L'export c'est le fait d'exposer un buffer via une API. Cette API fournit un buffer, ce buffer exporté peut soit etre en lecture seule, en ce cas la memoryview sera en lecture seule, soit être en lecture/écriture en ce cas la memoryview sera en lecture/écriture.

Il faut, je pense, lire https://docs.python.org/3/c-api/buffer.html avant, qui explique ce que signifie "exporter un buffer" :

a type can export a “buffer interface” which allows objects of that type to expose information about their underlying buffer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

La doc dit Any object that can export a series of bytes through the buffer interface can be written to a file.

On pourrait faire cela : Si *obj* permet les exports d'interfaces tampon en lecture comme en écriture notamment lors d'un write(). Qu'en penses-tu ?

@deronnax deronnax linked an issue Mar 21, 2020 that may be closed by this pull request
@deronnax
Copy link
Collaborator

deronnax commented May 4, 2020

@kw-andy tu reprends :) ? Tu as vu que pospell n'accepte pas le mot memoryview ?

@deronnax
Copy link
Collaborator

deronnax commented May 5, 2020

@awecx @christopheNan votre avis sur le "memoryview" ? Entre astérisques ou traduit ?

@christopheNan
Copy link
Contributor

@awecx @christopheNan votre avis sur le "memoryview" ? Entre astérisques ou traduit ?

Je ne vois pas de traduction satisfaisante (« vue mèmoire » ?). Je mettrais entre astèrisques. On pourra toujours le reprendre plus tard.

@kw-andy
Copy link
Contributor Author

kw-andy commented May 15, 2020

je fais les corrections ce weekend.

@deronnax
Copy link
Collaborator

on y va ;) ?

@JulienPalard
Copy link
Member

J'ai changé la base de cette PR de 3.8 à 3.9.

@@ -24,6 +25,9 @@ msgid ""
"<bufferobjects>` as a Python object which can then be passed around like any "
"other object."
msgstr ""
"Un objet :class:`memoryview` démontre / montre :ref:`buffer interface "
"<bufferobjects>` comme un objet python via le niveau C. Cet objet peut être "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Plutot Expose le xxx du niveau C comme un objet Python

@@ -32,19 +36,28 @@ msgid ""
"will be read/write, otherwise it may be either read-only or read/write at "
"the discretion of the exporter."
msgstr ""
"Crée un objet memoryview à partir d'un objet qui fournit l'interface tampon. "
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"si *obj* permet des exports d'interface tampon, l'objet memoryview peut être "
"Si *obj* permet des exports d'interface *writable*, l'objet memoryview peut être "

JulienPalard and others added 2 commits September 30, 2020 10:51
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
@JulienPalard JulienPalard merged commit f375e25 into python:3.9 Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Je travaille sur c-api/memoryview.po
5 participants