compilerop

IPython's cell compiler and traceback source cache.

code_name

def code_name(
    code, number:int=0
):

CachingCompiler

def CachingCompiler():

Instances of this class behave much like the built-in compile function, but if one is used to compile text containing a future statement, it "remembers" and compiles all subsequent program texts with the statement in force.

CachingCompiler.ast_parse

def ast_parse(
    source, filename:str='<unknown>', symbol:str='exec'
):

Parse code to an AST with the current compiler flags active.

CachingCompiler.cache

def cache(
    transformed_code, number:int=0
):

CachingCompiler.extra_flags

def extra_flags(
    flags
):