diff options
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r-- | Lib/symtable.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index 98db1e2..922854b 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -62,7 +62,7 @@ class SymbolTable: def get_type(self): """Return the type of the symbol table. - The values retuned are 'class', 'module' and + The values returned are 'class', 'module' and 'function'. """ if self._table.type == _symtable.TYPE_MODULE: @@ -245,7 +245,7 @@ class Symbol: return bool(self.__flags & DEF_PARAM) def is_global(self): - """Return *True* if the sysmbol is global. + """Return *True* if the symbol is global. """ return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT) or (self.__module_scope and self.__flags & DEF_BOUND)) |