Gestalte GoConqr mit. Was sollen wir als Nächstes hinzufügen?

Mindmap

Scope

sebastian perea Spanisch

Inhalt der Mindmap

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

Informationen

Beschreibung
Mindmap am Scope, erstellt von sebastian perea am 15/02/2019.
Erstellt von
sebastian perea
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Was sollen wir als Nächstes hinzufügen?