-
- Notifications
You must be signed in to change notification settings - Fork 264
3.7 howto descriptor #353
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
3.7 howto descriptor #353
Conversation
howto/descriptor.po Outdated
| "recherchée est un objet définissant l'une des méthodes de descripteur, " | ||
| "Python peut substituer le comportement par défaut et appeler à la place la " | ||
| "méthode Descriptor. Lorsque cela se produit dans la chaîne de précédence " | ||
| "dépend de quelles méthodes descripteur ont été définies." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
peut-etre un s a descripteur dans la ligne 107
howto/descriptor.po Outdated
| "different calls to :meth:`__get__`." | ||
| msgstr "" | ||
| ":méth:`objet.__getattribute__` et :méth:`type.__getattribute__` font " | ||
| "différents appels à:méth:`__get__`." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
il manque un espace apres à
howto/descriptor.po Outdated
| #: ../Doc/howto/descriptor.rst:3 | ||
| msgid "Descriptor HowTo Guide" | ||
| msgstr "" | ||
| msgstr "Descripteur Guide HowTo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guide pour l'utilisation des descripteurs ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merci
| "methods. Shows how each works by giving a pure Python equivalent and a " | ||
| "sample application." | ||
| msgstr "" | ||
| "Définit les descripteurs, résume le protocole et montre comment les " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je ne sais pas si l'on est obligé de coller au style télégraphique de Raymond. There must be a better way ! et je tape du poing sur la table.
Bref, je pense que l'on peut construire de vraies phrases
howto/descriptor.po Outdated
| "En général, un descripteur est un attribut objet avec un \"comportement " | ||
| "contraignant\", dont l'accès à l'attribut a été remplacé par des méthodes " | ||
| "dans le protocole du descripteur. Ces méthodes sont : :méth:`__get__`, :" | ||
| "méth:`__set__`, et :méth:`__delete__`. Si l'une de ces méthodes est définie " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En français, il est d'usage de ne pas mettre de virgule avant le 'et'.
howto/descriptor.po Outdated
| msgstr "" | ||
| "Le comportement par défaut pour l'accès aux attributs consiste à obtenir, " | ||
| "définir ou supprimer l'attribut du dictionnaire d'un objet. Par exemple, ' " | ||
| "'a. x' 'a une chaîne de recherche commençant par' 'a. __dict__ ['x'] ' ', " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pour 'a.x', Python commence par rechercher dans ...
howto/descriptor.po Outdated
| "Le comportement par défaut pour l'accès aux attributs consiste à obtenir, " | ||
| "définir ou supprimer l'attribut du dictionnaire d'un objet. Par exemple, ' " | ||
| "'a. x' 'a une chaîne de recherche commençant par' 'a. __dict__ ['x'] ' ', " | ||
| "puis' 'type (a). __dict__ ['x'] ' ', et continuant à travers les classes de " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... puis continue en cherchant dans les classes ....
howto/descriptor.po Outdated
| "base de' 'type (a) ' 'À l'exclusion des sous-classes. Si la valeur " | ||
| "recherchée est un objet définissant l'une des méthodes de descripteur, " | ||
| "Python peut substituer le comportement par défaut et appeler à la place la " | ||
| "méthode Descriptor. Lorsque cela se produit dans la chaîne de précédence " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
la méthode correspondante du descripteur. Le moment où ce comportement est adopté dépend de la chaîne de précédence et des endroits où les méthodes descripteur ont été définies.
howto/descriptor.po Outdated
| "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 retourne ensuite ``A.__dict__['m'].__get__(obj, " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
La documentation française préfère "renvoie" à "retourne" (voir glossaire).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merci
No description provided.