An ImportTimeScope is any scope that is not nested within a function and will thus be executed if its enclosing module is imported. Note however, that if a scope is not an ImportTimeScope it may still be executed at import time. This is an artificial approximation, which is necessary for static analysis.
Whether this contains
Gets an exit from this Scope’s control flow graph, that does not result from an exception
Gets a top-level statement in this scope
Gets an exit from this Scope’s control flow graph
Gets the statements forming the body of this scope
Gets the docstring for this scope
Gets the scope enclosing this scope (modules have no enclosing scope)
Gets the entry point into this Scope’s control flow graph
Gets the evaluation scope for code in this (lexical) scope. This is usually the scope itself, but may be an enclosing scope. Notably, for list comprehensions in Python 2.
Gets the non-explicit exit from this Scope’s control flow graph
Gets the name of this scope
Gets the exit of this scope following from a return statement
This method will be deprecated in the next release. Please use
Gets the nth statement of this scope
Holds if this scope is in the source archive, that is it is part of the code specified, not library code
Holds if this scope is deemed to be public
Holds if this a top-level (non-nested) class or function
Holds if this scope can be expected to execute before
Gets a textual representation of this element.