Lines Matching defs:global
11 "name '%U' is parameter and global"
17 "name '%U' is assigned to before global declaration"
23 "name '%U' is used prior to global declaration"
29 "annotated name '%U' can't be global"
440 which determines whether a name is local, global, or free. In addition,
444 There are also two kinds of global variables, implicit and explicit. An
445 explicit global is declared with the global statement. An implicit
446 global is a free variable for which the compiler has found no binding
447 in an enclosing function scope. The implicit global is either a global
450 block, the name is treated as global until it is assigned to; then it
479 global: set of all symbol names explicitly declared as global
496 about the new name. For example, a new global will add an entry to
497 global. A name that was global can be changed to local.
503 PyObject *global)
508 "name '%U' is nonlocal and global",
513 if (PySet_Add(global, name) < 0)
540 if (PySet_Discard(global, name) < 0)
545 is a free variable rather than a global variable.
554 /* If a parent has a global statement, then call it global
555 explicit? It could also be global implicit.
557 if (global && PySet_Contains(global, name)) {
671 or global in the class scope.
693 /* Handle global symbol */
696 continue; /* it's a global */
721 globals -- set of declared global variables in enclosing scopes (input)
736 PyObject *global, PyObject* child_free);
740 PyObject *global)
755 /* Allocate new global and bound variable dictionaries. These
757 ClassBlocks, the bound and global names are initialized
777 nested functions, so populate the global and bound
783 temp = PyNumber_InPlaceOr(newglobal, global);
799 bound, local, free, global))
803 /* Populate global and bound sets to be passed to children. */
820 temp = PyNumber_InPlaceOr(newglobal, global);
887 PyObject *global, PyObject* child_free)
892 /* Copy the bound and global dictionaries.
905 temp_global = PySet_New(global);
929 PyObject *free, *global;
935 global = PySet_New(NULL);
936 if (!global) {
940 r = analyze_block(st->st_top, NULL, free, global);
942 Py_DECREF(global);