Ayúdanos a dar forma a GoConqr. ¿Qué deberíamos añadir?

Mapa mental

Scope

sebastian perea Español

Contenido del mapa

Scope

  1. Is the range of statements in which the variable is visible.

    • A variable is local in a program unit or block if it is declared there. The nonlocal variables of a program unit or block are those that are visible within the program unit or block but are not declared there. Global variables are a special category of nonlocal variables
  2. Static Scoping

    • Binding names to nonlocal variables called static scoping
      • Static scoping is so named because the scope of a variable can be statically determined— that is, prior to execution.
        • Whether a variable is global or local in a function is determined before the function is called, i.e. statically.
          • For example: a = 1 b = 2 def func1(): c = 3 print func1.__code__.co_varnames # prints ('c',)

Información

Descripción
Mapa Mental sobre Scope, creado por sebastian perea el 15/02/2019.
Creado por
sebastian perea
Visitas
1
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué deberíamos añadir?