Atributos especiales
Atributos especiales de los objetos en Python
__dict__
Contiene un diccionario u otro objeto del tipo de colección de datos que almacena los atributos modificables de un objeto.
fuente: https://docs.python.org/3/reference/datamodel.html#types
| The function’s documentation string, or | Writable |
The function’s name. | Writable | |
The function’s qualified name. New in version 3.3. | Writable | |
| The name of the module the function was defined in, or | Writable |
| A tuple containing default argument values for those arguments that have defaults, or | Writable |
| The code object representing the compiled function body. | Writable |
| A reference to the dictionary that holds the function’s global variables — the global namespace of the module in which the function was defined. | Read-only |
The namespace supporting arbitrary function attributes. | Writable | |
|
| Read-only |
| A dict containing annotations of parameters. The keys of the dict are the parameter names, and | Writable |
| A dict containing defaults for keyword-only parameters. | Writable |
Comentarios
Publicar un comentario