__getattr__() — langchain Function Reference
Architecture documentation for the __getattr__() function in __init__.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a6afb28d_58f8_7750_0b0a_0ee684589870["__getattr__()"] 8c0b40c8_2389_1d61_fd0d_86044ea93da2["__init__.py"] a6afb28d_58f8_7750_0b0a_0ee684589870 -->|defined in| 8c0b40c8_2389_1d61_fd0d_86044ea93da2 style a6afb28d_58f8_7750_0b0a_0ee684589870 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/tools/python/__init__.py lines 4–13
def __getattr__(_: str = "") -> Any:
msg = (
"This tool has been moved to langchain_experimental. "
"This tool has access to a python REPL. "
"For best practices make sure to sandbox this tool. "
"Read https://github.com/langchain-ai/langchain/blob/master/SECURITY.md "
"To keep using this code as is, install langchain_experimental and "
"update relevant imports replacing 'langchain' with 'langchain_experimental'"
)
raise AttributeError(msg)
Domain
Subdomains
Source
Frequently Asked Questions
What does __getattr__() do?
__getattr__() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/tools/python/__init__.py.
Where is __getattr__() defined?
__getattr__() is defined in libs/langchain/langchain_classic/tools/python/__init__.py at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free