Help shape GoConqr. What should we add next?

Mind map

Scope

sebastian perea Spanish

Map content

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',)

Information

Description
Mind Map on Scope, created by sebastian perea on 15/02/2019.
Created by
sebastian perea
Views
1
Rating

Feedback

What is it about?

What should we add next?