class documentation
An undefined that barks on print and iteration as well as boolean tests and all kinds of comparisons. In other words: you can do nothing with it except checking if it's defined using the `defined` test. >>> foo = StrictUndefined(name='foo') >>> str(foo) Traceback (most recent call last): ... jinja2.exceptions.UndefinedError: 'foo' is undefined >>> not foo Traceback (most recent call last): ... jinja2.exceptions.UndefinedError: 'foo' is undefined >>> foo + 42 Traceback (most recent call last): ... jinja2.exceptions.UndefinedError: 'foo' is undefined
Class Variable | __slots__ |
Undocumented |
Inherited from Undefined
:
Async Method | __aiter__ |
Undocumented |
Method | __bool__ |
Undocumented |
Method | __eq__ |
Undocumented |
Method | __getattr__ |
Undocumented |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | __ne__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | _fail |
Raise an :exc:`UndefinedError` when operations are performed on the undefined value. |
Instance Variable | _undefined |
Undocumented |
Instance Variable | _undefined |
Undocumented |
Instance Variable | _undefined |
Undocumented |
Instance Variable | _undefined |
Undocumented |
Property | _undefined |
Build a message about the undefined value based on how it was accessed. |