forked from AFPy/python-docs-fr
howto/descriptor : correction d'une fuzzy et de qq erreurs (#1216)
This commit is contained in:
parent
f3b0c032f8
commit
e53d72cf96
|
@ -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 <julien@palard.fr>\n"
|
||||
"PO-Revision-Date: 2020-03-28 20:32+0100\n"
|
||||
"Last-Translator: Mathieu Dupuy <deronnax@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 2.1.1\n"
|
||||
"X-Generator: Poedit 2.3\n"
|
||||
|
||||
#: ../Doc/howto/descriptor.rst:3
|
||||
msgid "Descriptor HowTo Guide"
|
||||
|
@ -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
|
||||
|
@ -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:"
|
||||
|
@ -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
|
||||
|
@ -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 "
|
||||
|
@ -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 ""
|
||||
|
|
Loading…
Reference in New Issue