__getattr__() — flask Function Reference
Architecture documentation for the __getattr__() function in globals.py from the flask codebase.
Entity Profile
Dependency Diagram
graph TD 2e418667_3516_5be9_35af_2f65da57ffb8["__getattr__()"] 9cff5a62_7dbb_7b80_cf3c_128a7a2fda28["globals.py"] 2e418667_3516_5be9_35af_2f65da57ffb8 -->|defined in| 9cff5a62_7dbb_7b80_cf3c_128a7a2fda28 style 2e418667_3516_5be9_35af_2f65da57ffb8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/flask/globals.py lines 65–77
def __getattr__(name: str) -> t.Any:
import warnings
if name == "request_ctx":
warnings.warn(
"'request_ctx' has merged with 'app_ctx', and will be removed"
" in Flask 4.0. Use 'app_ctx' instead.",
DeprecationWarning,
stacklevel=2,
)
return app_ctx
raise AttributeError(name)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does __getattr__() do?
__getattr__() is a function in the flask codebase, defined in src/flask/globals.py.
Where is __getattr__() defined?
__getattr__() is defined in src/flask/globals.py at line 65.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free