Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jun 7, 2024
1 parent 58fda58 commit 655f750
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Include/internal/pycore_symtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);
#define SCOPE_OFFSET 11 /* 1 + highest bit for a DEF_* flag */
#define SCOPE_MASK 0b111 /* 3 bits for storing the scope */

// Scopes for a symbol.
//
// GLOBAL_EXPLICIT and GLOBAL_IMPLICIT are used internally by the symbol
// table. For symbols with such scopes, the ``symtable.Symbol.is_global``
// method returns True.
#define LOCAL 1
#define GLOBAL_EXPLICIT 2
#define GLOBAL_IMPLICIT 3
Expand Down

0 comments on commit 655f750

Please sign in to comment.