Home / Function/ _dump_loader_info() — flask Function Reference

_dump_loader_info() — flask Function Reference

Architecture documentation for the _dump_loader_info() function in debughelpers.py from the flask codebase.

Entity Profile

Dependency Diagram

graph TD
  42fbaf94_6e69_e270_9d95_547ffb5ea796["_dump_loader_info()"]
  7fa0faba_d854_797c_b6bd_20820e905793["debughelpers.py"]
  42fbaf94_6e69_e270_9d95_547ffb5ea796 -->|defined in| 7fa0faba_d854_797c_b6bd_20820e905793
  20e2a035_64d0_0672_da27_0120172d5eff["explain_template_loading_attempts()"]
  20e2a035_64d0_0672_da27_0120172d5eff -->|calls| 42fbaf94_6e69_e270_9d95_547ffb5ea796
  style 42fbaf94_6e69_e270_9d95_547ffb5ea796 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/flask/debughelpers.py lines 107–121

def _dump_loader_info(loader: BaseLoader) -> t.Iterator[str]:
    yield f"class: {type(loader).__module__}.{type(loader).__name__}"
    for key, value in sorted(loader.__dict__.items()):
        if key.startswith("_"):
            continue
        if isinstance(value, (tuple, list)):
            if not all(isinstance(x, str) for x in value):
                continue
            yield f"{key}:"
            for item in value:
                yield f"  - {item}"
            continue
        elif not isinstance(value, (str, int, float, bool)):
            continue
        yield f"{key}: {value!r}"

Subdomains

Frequently Asked Questions

What does _dump_loader_info() do?
_dump_loader_info() is a function in the flask codebase, defined in src/flask/debughelpers.py.
Where is _dump_loader_info() defined?
_dump_loader_info() is defined in src/flask/debughelpers.py at line 107.
What calls _dump_loader_info()?
_dump_loader_info() is called by 1 function(s): explain_template_loading_attempts.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free