Return *True* if the symbol is global.
(self)
| 320 | return bool(self.__flags & DEF_TYPE_PARAM) |
| 321 | |
| 322 | def is_global(self): |
| 323 | """Return *True* if the symbol is global. |
| 324 | """ |
| 325 | return bool(self.__scope in (GLOBAL_IMPLICIT, GLOBAL_EXPLICIT) |
| 326 | or (self.__module_scope and self.__flags & DEF_BOUND)) |
| 327 | |
| 328 | def is_nonlocal(self): |
| 329 | """Return *True* if the symbol is nonlocal.""" |
no outgoing calls