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

Static Public Attributes

 fields
 
- Static Public Attributes inherited from Stmt
 abstract
 
- Static Public Attributes inherited from Node
 fields
 
 attributes
 
 abstract
 

Additional Inherited Members

- Public Member Functions inherited from Node
def __init__ (self, *fields, **attributes)
 
def iter_fields (self, exclude=None, only=None)
 
def iter_child_nodes (self, exclude=None, only=None)
 
def find (self, node_type)
 
def find_all (self, node_type)
 
def set_ctx (self, ctx)
 
def set_lineno (self, lineno, override=False)
 
def set_environment (self, environment)
 
def __eq__ (self, other)
 
def __ne__ (self, other)
 
def __repr__ (self)
 
def dump (self)
 
- Public Member Functions inherited from NodeType
def __new__ (mcs, name, bases, d)
 

Detailed Description

The for loop.  `target` is the target for the iteration (usually a
:class:`Name` or :class:`Tuple`), `iter` the iterable.  `body` is a list
of nodes that are used as loop-body, and `else_` a list of nodes for the
`else` block.  If no else node exists it has to be an empty list.

For filtered nodes an expression can be stored as `test`, otherwise `None`.

Field Documentation

◆ fields

fields
static

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