LiteralTemplate
- class LiteralTemplate
Description
A literal value: the template form of
3,4.5,"a",true.Equality compares the value’s Python type as well as the value itself, because the type selects the literal element-kind:
literal(1)instantiates aLiteralIntegerandliteral(True)aLiteralBoolean, so they must not compare equal even though1 == Truein Python (and likewise for1and1.0).Inheritance:
Members defined in
LiteralTemplate(2 members)Members inherited from
ExpressionTemplate(13 members)Attributes
Methods
Used by