You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
"Avec trois arguments, retourne un nouveau type. C'est essentiellement une "
"forme dynamique de l'instruction :keyword:`class`. La chaîne *name* est le "
"nom de la classe et deviendra l'attribut :attr:`~definition.__name__` ; le "
"*tuple* *bases* contient les classes mères et deviendra l'attribut :attr:"
"`~class.__bases__` ; et le dictionnaire *dict* est l'espace de noms "
"contenant les définitions du corps de la classe, il est copié vers un "
"dictionnaire standard pour devenir l'attribut :attr:`~object.__dict__`. Par "
"exemple, les deux instructions suivantes créent deux instances identiques "
"de :class:`type`."
#: ../Doc/library/functions.rst:1486
msgid "See also :ref:`bltin-type-objects`."
Expand All
@@ -2742,12 +2783,18 @@ msgid ""
"Subclasses of :class:`type` which don't override ``type.__new__`` may no "
"longer use the one-argument form to get the type of an object."
msgstr ""
"Les sous-classes de :class:`type` qui ne redéfinissent pas ``type.__new__`` "
"ne devraient plus utiliser la forme à un argument pour récupérer le type "
"d'un objet."
#: ../Doc/library/functions.rst:1494
msgid ""
"Return the :attr:`~object.__dict__` attribute for a module, class, instance, "
"or any other object with a :attr:`~object.__dict__` attribute."
msgstr ""
"Retourne l'attribut :attr:`~object.__dict__` d'un module, d'une classe, "
"d'une instance ou de n'importe quel objet avec un attribut :attr:`~object."
"__dict__`."
#: ../Doc/library/functions.rst:1497
msgid ""
Expand All
@@ -2756,6 +2803,11 @@ msgid ""
"their :attr:`~object.__dict__` attributes (for example, classes use a :class:"
"`types.MappingProxyType` to prevent direct dictionary updates)."
msgstr ""
"Les objets tels que les modules et les instances on un attribut :attr:"
"`~object.__dict__` modifiable ; Cependant, d'autres objets peuvent avoir des "
"restrictions en écriture sur leurs attributs :attr:`~object.__dict__` (par "
"exemple, les classes utilisent un :class:`types.MappingProxyType` pour "
"éviter les modifications directes du dictionnaire)."
#: ../Doc/library/functions.rst:1502
msgid ""
Expand Down
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.