Thanks to visit codestin.com
Credit goes to github.com

Skip to content

howto/descriptor : correction d'une fuzzy et de qq erreurs #1216

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
Apr 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 14 additions & 15 deletions howto/descriptor.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ msgstr ""
"Project-Id-Version: Python 3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
"PO-Revision-Date: 2019-12-12 16:19+0100\n"
"Last-Translator: Julien Palard <[email protected]>\n"
"PO-Revision-Date: 2020-03-28 20:32+0100\n"
"Last-Translator: Mathieu Dupuy <[email protected]>\n"
"Language-Team: FRENCH <[email protected]>\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.1.1\n"
"X-Generator: Poedit 2.3\n"

#: ../Doc/howto/descriptor.rst:3
msgid "Descriptor HowTo Guide"
Expand Down Expand Up @@ -233,13 +233,13 @@ msgid ""
"The full C implementation can be found in :c:func:"
"`PyObject_GenericGetAttr()` in :source:`Objects/object.c`."
msgstr ""
"Pour les objets, la machinerie est en :meth:`object.__getattribute__` qui "
"Pour les objets, la machinerie est dans :meth:`object.__getattribute__` qui "
"transforme ``b.x`` en ``type(b).__dict__['x'].__get__(b, type(b)]``. "
"L'implémentation fonctionne à travers une chaîne de priorité qui donne la "
"priorité aux descripteurs de données sur les variables d'instance, la "
"priorité aux variables d'instance sur les descripteurs *non-data*, et "
"attribue la priorité la plus faible à :meth:`__getattr__` si fourni. "
"L'implémentation complète de C peut être trouvée dans :c:func:"
"L'implémentation complète en C peut être trouvée dans :c:func:"
"`PyObject_GenericGetAttr()` dans :source:`Objects/object.c`."

#: ../Doc/howto/descriptor.rst:99
Expand All @@ -250,7 +250,7 @@ msgid ""
msgstr ""
"Pour les classes, la machinerie est dans :meth:`type.__getattribute__` qui "
"transforme ``B.x`` en ``B.__dict__['x'].__get__(None, B)``. En Python pur, "
"il ressemble à ::"
"cela ressemble à ::"

#: ../Doc/howto/descriptor.rst:110
msgid "The important points to remember are:"
Expand All @@ -263,7 +263,7 @@ msgstr "les descripteurs sont appelés par la méthode :meth:`__getattribute__`"
#: ../Doc/howto/descriptor.rst:113
msgid "overriding :meth:`__getattribute__` prevents automatic descriptor calls"
msgstr ""
"redéfinition :meth:`__getattribute____` empêche les appels automatiques de "
"redéfinir :meth:`__getattribute____` empêche les appels automatiques de "
"descripteurs"

#: ../Doc/howto/descriptor.rst:114
Expand All @@ -287,7 +287,6 @@ msgstr ""
"d'instance."

#: ../Doc/howto/descriptor.rst:119
#, fuzzy
msgid ""
"The object returned by ``super()`` also has a custom :meth:"
"`__getattribute__` method for invoking descriptors. The attribute lookup "
Expand All @@ -297,13 +296,13 @@ msgid ""
"not in the dictionary, ``m`` reverts to a search using :meth:`object."
"__getattribute__`."
msgstr ""
"L'objet retourné par ``super()`` a aussi une méthode personnalisée :meth:"
"`__getattribute__` pour appeler les descripteurs. L'appel ``super(B, obj)."
"m()`` recherche ``obj.__class__.__mro__`` pour la classe de base ``A`` "
"immédiatement après ``B`` et renvoie ensuite ``A.__dict__['m'].__get__(obj, "
"B)``. Si ce n'est pas un descripteur, ``m`` est retourné inchangé. Si ce "
"n'est pas dans le dictionnaire, ``m`` renvoie à une recherche avec :meth:"
"`object.__getattribute__`."
"L'objet renvoyé par ``super()`` a également une méthode personnalisée :meth:"
"`__getattribute__` pour invoquer des descripteurs. La recherche d'attribut "
"``super(B, obj).m`` recherche dans ``obj.__class__.__mro__`` la classe qui "
"suit immédiatement B, appelons la A, et renvoie ``A.__dict__['m']."
"__get__(obj, B)``. Si ce n'est pas un descripteur, ``m`` est renvoyé "
"inchangé. S'il n'est pas dans le dictionnaire, la recherche de ``m`` revient "
"à une recherche utilisant :meth:`object.__getattribute__`."

#: ../Doc/howto/descriptor.rst:126
msgid ""
Expand Down