Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
jinja2.nodes.Tuple Class Reference
Inheritance diagram for jinja2.nodes.Tuple:
Inheritance graph
[legend]
Collaboration diagram for jinja2.nodes.Tuple:
Collaboration graph
[legend]

Public Member Functions

t.Tuple[t.Any,...] as_const (self, t.Optional[EvalContext] eval_ctx=None)
 
bool can_assign (self)
 
- Public Member Functions inherited from jinja2.nodes.Node
None __init__ (self, *t.Any fields, **t.Any attributes)
 
t.Iterator[t.Tuple[str, t.Any]] iter_fields (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None)
 
t.Iterator["Node"] iter_child_nodes (self, t.Optional[t.Container[str]] exclude=None, t.Optional[t.Container[str]] only=None)
 
t.Optional[_NodeBound] find (self, t.Type[_NodeBound] node_type)
 
t.Iterator[_NodeBound] find_all (self, t.Union[t.Type[_NodeBound], t.Tuple[t.Type[_NodeBound],...]] node_type)
 
"Node" set_ctx (self, str ctx)
 
"Node" set_lineno (self, int lineno, bool override=False)
 
"Node" set_environment (self, "Environment" environment)
 
bool __eq__ (self, t.Any other)
 
str __repr__ (self)
 
str dump (self)
 
- Public Member Functions inherited from jinja2.nodes.NodeType
 __new__ (mcs, name, bases, d)
 

Public Attributes

 items
 
- Public Attributes inherited from jinja2.nodes.Node
 fields
 

Static Public Attributes

tuple fields = ("items", "ctx")
 
items .List[Expr]
 
str ctx
 
- Static Public Attributes inherited from jinja2.nodes.Literal
bool abstract = True
 
- Static Public Attributes inherited from jinja2.nodes.Expr
bool abstract = True
 
- Static Public Attributes inherited from jinja2.nodes.Node
tuple fields = ()
 
tuple attributes = ("lineno", "environment")
 
bool abstract = True
 
int lineno
 
environment .Optional["Environment"]
 

Detailed Description

For loop unpacking and some other things like multiple arguments
for subscripts.  Like for :class:`Name` `ctx` specifies if the tuple
is used for loading the names or storing.

Member Function Documentation

◆ as_const()

t.Tuple[t.Any, ...] jinja2.nodes.Tuple.as_const (   self,
t.Optional[EvalContext]   eval_ctx = None 
)
Return the value of the expression as constant or raise
:exc:`Impossible` if this was not possible.

An :class:`EvalContext` can be provided, if none is given
a default context is created which requires the nodes to have
an attached environment.

.. versionchanged:: 2.4
   the `eval_ctx` parameter was added.

Reimplemented from jinja2.nodes.Expr.

◆ can_assign()

bool jinja2.nodes.Tuple.can_assign (   self)
Check if it's possible to assign something to this node.

Reimplemented from jinja2.nodes.Expr.


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