Si une variable n'est pas définie dans le corps d'une fonction, Python ira chercher dans un environnement parent.
If a variable is not defined in the body of a function, Python will search in a parent environment.
Si on définit une fonction à l'intérieur d'une autre fonction, et qu'on appelle une variable non définie dans le corps de cette fonction, Python ira chercher dans l'environnement directement supérieur.
If we define a function within another function, and call a variable not defined in the body of that function, Python will search in the directly superior environment.
Outros resultados
À cause de ceux-ci, le nouveau Python n'ira pas dans la distribution testing.
Due to this the new Python doesn't make it into the testing distribution.
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.