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"
|
"Project-Id-Version: Python 3\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
|
"POT-Creation-Date: 2019-09-04 11:33+0200\n"
|
||||||
"PO-Revision-Date: 2019-12-12 16:19+0100\n"
|
"PO-Revision-Date: 2020-03-28 20:32+0100\n"
|
||||||
"Last-Translator: Julien Palard <julien@palard.fr>\n"
|
"Last-Translator: Mathieu Dupuy <deronnax@gmail.com>\n"
|
||||||
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
"Language-Team: FRENCH <traductions@lists.afpy.org>\n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Generator: Poedit 2.1.1\n"
|
"X-Generator: Poedit 2.3\n"
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:3
|
#: ../Doc/howto/descriptor.rst:3
|
||||||
msgid "Descriptor HowTo Guide"
|
msgid "Descriptor HowTo Guide"
|
||||||
|
@ -233,13 +233,13 @@ msgid ""
|
||||||
"The full C implementation can be found in :c:func:"
|
"The full C implementation can be found in :c:func:"
|
||||||
"`PyObject_GenericGetAttr()` in :source:`Objects/object.c`."
|
"`PyObject_GenericGetAttr()` in :source:`Objects/object.c`."
|
||||||
msgstr ""
|
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)]``. "
|
"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 "
|
"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 descripteurs de données sur les variables d'instance, la "
|
||||||
"priorité aux variables d'instance sur les descripteurs *non-data*, et "
|
"priorité aux variables d'instance sur les descripteurs *non-data*, et "
|
||||||
"attribue la priorité la plus faible à :meth:`__getattr__` si fourni. "
|
"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`."
|
"`PyObject_GenericGetAttr()` dans :source:`Objects/object.c`."
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:99
|
#: ../Doc/howto/descriptor.rst:99
|
||||||
|
@ -250,7 +250,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Pour les classes, la machinerie est dans :meth:`type.__getattribute__` qui "
|
"Pour les classes, la machinerie est dans :meth:`type.__getattribute__` qui "
|
||||||
"transforme ``B.x`` en ``B.__dict__['x'].__get__(None, B)``. En Python pur, "
|
"transforme ``B.x`` en ``B.__dict__['x'].__get__(None, B)``. En Python pur, "
|
||||||
"il ressemble à ::"
|
"cela ressemble à ::"
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:110
|
#: ../Doc/howto/descriptor.rst:110
|
||||||
msgid "The important points to remember are:"
|
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
|
#: ../Doc/howto/descriptor.rst:113
|
||||||
msgid "overriding :meth:`__getattribute__` prevents automatic descriptor calls"
|
msgid "overriding :meth:`__getattribute__` prevents automatic descriptor calls"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"redéfinition :meth:`__getattribute____` empêche les appels automatiques de "
|
"redéfinir :meth:`__getattribute____` empêche les appels automatiques de "
|
||||||
"descripteurs"
|
"descripteurs"
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:114
|
#: ../Doc/howto/descriptor.rst:114
|
||||||
|
@ -287,7 +287,6 @@ msgstr ""
|
||||||
"d'instance."
|
"d'instance."
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:119
|
#: ../Doc/howto/descriptor.rst:119
|
||||||
#, fuzzy
|
|
||||||
msgid ""
|
msgid ""
|
||||||
"The object returned by ``super()`` also has a custom :meth:"
|
"The object returned by ``super()`` also has a custom :meth:"
|
||||||
"`__getattribute__` method for invoking descriptors. The attribute lookup "
|
"`__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."
|
"not in the dictionary, ``m`` reverts to a search using :meth:`object."
|
||||||
"__getattribute__`."
|
"__getattribute__`."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"L'objet retourné par ``super()`` a aussi une méthode personnalisée :meth:"
|
"L'objet renvoyé par ``super()`` a également une méthode personnalisée :meth:"
|
||||||
"`__getattribute__` pour appeler les descripteurs. L'appel ``super(B, obj)."
|
"`__getattribute__` pour invoquer des descripteurs. La recherche d'attribut "
|
||||||
"m()`` recherche ``obj.__class__.__mro__`` pour la classe de base ``A`` "
|
"``super(B, obj).m`` recherche dans ``obj.__class__.__mro__`` la classe qui "
|
||||||
"immédiatement après ``B`` et renvoie ensuite ``A.__dict__['m'].__get__(obj, "
|
"suit immédiatement B, appelons la A, et renvoie ``A.__dict__['m']."
|
||||||
"B)``. Si ce n'est pas un descripteur, ``m`` est retourné inchangé. Si ce "
|
"__get__(obj, B)``. Si ce n'est pas un descripteur, ``m`` est renvoyé "
|
||||||
"n'est pas dans le dictionnaire, ``m`` renvoie à une recherche avec :meth:"
|
"inchangé. S'il n'est pas dans le dictionnaire, la recherche de ``m`` revient "
|
||||||
"`object.__getattribute__`."
|
"à une recherche utilisant :meth:`object.__getattribute__`."
|
||||||
|
|
||||||
#: ../Doc/howto/descriptor.rst:126
|
#: ../Doc/howto/descriptor.rst:126
|
||||||
msgid ""
|
msgid ""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user