class documentation

class DebugUndefined(Undefined):

View In Hierarchy

An undefined that returns the debug info when printed.

>>> foo = DebugUndefined(name='foo')
>>> str(foo)
'{{ foo }}'
>>> not foo
True
>>> foo + 42
Traceback (most recent call last):
  ...
jinja2.exceptions.UndefinedError: 'foo' is undefined
Method __str__ Undocumented
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 ​_fail​_with​_undefined​_error Raise an UndefinedError when operations are performed on the undefined value.
Instance Variable ​_undefined​_exception Undocumented
Instance Variable ​_undefined​_hint Undocumented
Instance Variable ​_undefined​_name Undocumented
Instance Variable ​_undefined​_obj Undocumented
Property ​_undefined​_message Build a message about the undefined value based on how it was accessed.
def __str__(self):

Undocumented

Returns
strUndocumented
__slots__: tuple =

Undocumented