OpenQuizz
Une application de gestion des contenus pédagogiques
Frame Class Reference
Inheritance diagram for Frame:
Collaboration diagram for Frame:

Public Member Functions

def __init__ (self, exc_type, exc_value, tb)
 
def render (self, mark_lib=True)
 
def is_library (self)
 
def render_text (self)
 
def render_line_context (self)
 
def get_annotated_lines (self)
 
def eval (self, code, mode="single")
 
def sourcelines (self)
 
def get_context_lines (self, context=5)
 
def current_line (self)
 
def console (self)
 
def id (self)
 

Data Fields

 lineno
 
 function_name
 
 locals
 
 globals
 
 filename
 
 module
 
 loader
 
 code
 
 hide
 
 info
 

Detailed Description

A single frame in a traceback.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  exc_type,
  exc_value,
  tb 
)

Member Function Documentation

◆ console()

def console (   self)

◆ current_line()

def current_line (   self)

◆ eval()

def eval (   self,
  code,
  mode = "single" 
)
Evaluate code in the context of the frame.

◆ get_annotated_lines()

def get_annotated_lines (   self)
Helper function that returns lines with extra information.

◆ get_context_lines()

def get_context_lines (   self,
  context = 5 
)

◆ id()

def id (   self)

◆ is_library()

def is_library (   self)

◆ render()

def render (   self,
  mark_lib = True 
)
Render a single frame in a traceback.

◆ render_line_context()

def render_line_context (   self)

◆ render_text()

def render_text (   self)

◆ sourcelines()

def sourcelines (   self)
The sourcecode of the file as list of unicode strings.

Field Documentation

◆ code

code

◆ filename

filename

◆ function_name

function_name

◆ globals

globals

◆ hide

hide

◆ info

info

◆ lineno

lineno

◆ loader

loader

◆ locals

locals

◆ module

module

The documentation for this class was generated from the following file: