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

Conversation

deronnax
Copy link
Collaborator

une simple correction de fuzzy m'a permis de constater au moins 4 erreurs rien que dans la même section. Le fichier est pas bien traduit, c'est une révision totale qu'il lui faut

@deronnax deronnax changed the title correction d'une fuzzy et de plusieurs erreurs howto/descriptor : correction d'une fuzzy et de qq erreurs Mar 29, 2020
@deronnax deronnax linked an issue Mar 29, 2020 that may be closed by this pull request
Comment on lines 299 to 305
"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 ``obj.__class__.__mro__`` pour la classe de "
"base ``A`` parente directe de ``B`` et renvoie ensuite ``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, ``m`` se rabat sur une "
"recherche utilisant :meth:`objet.__getattribut__`."
Copy link
Contributor

Choose a reason for hiding this comment

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

Super chaud !
Il me faudrait le code source pour être sûr. Le premier qui trouve publie le lien, merci.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ouais je crois que j'ai passé 20 minutes entières sur ce seul bloc pour être sûr qu'il ait un sens. Le code source de ?

Copy link
Contributor

Choose a reason for hiding this comment

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

getattribute renvoyé par super.

Copy link
Contributor

Choose a reason for hiding this comment

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

Les soulignés ont été remplacés par une mise en gras.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Je comprends :
« 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). ».
Et pour la dernière phrase : « S'il n'est pas dans le dictionnaire, trouver m se rabat sur … ».

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Très bien vu. Je corrige ça

Copy link
Collaborator Author

@deronnax deronnax Apr 6, 2020

Choose a reason for hiding this comment

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

Je trouve que c'est pas très français, « trouver m se rabat sur une recherche utilisant [...] ». Est-ce qu'une action peut se rabattre ? En même temps, la phrase d'origine en anglais comporte cette maladresse. Que suggères-tu, @christopheNan ?

Copy link
Contributor

Choose a reason for hiding this comment

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

« S'il n'est pas dans le dictionnaire, la recherche de m revient à une recherche utilisant :meth:objet.__getattribute__. »

@deronnax
Copy link
Collaborator Author

Je cherchais quelque chose d'encore meilleur que ce qu'avait suggéré Christophe mais je ne trouve pas. Finissons-en

@deronnax deronnax requested a review from christopheNan April 30, 2020 11:51
@christopheNan
Copy link
Contributor

Bizarre, la CI ne détecte pas la coquille sur :meth:objet.__getattribut__

Co-authored-by: Christophe Nanteuil <[email protected]>
@christopheNan christopheNan merged commit e53d72c into python:3.8 Apr 30, 2020
@christopheNan
Copy link
Contributor

Merci !

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 howto/descriptor.po
2 participants