bundles / IPython 9.14.0.dev / IPython / utils / dir2 / dir2
function
IPython.utils.dir2:dir2
source: /IPython/utils/dir2.py :25
Signature
def dir2 ( obj : object ) → list[str] Summary
dir2(obj) -> list of strings
Extended Summary
Extended version of the Python builtin dir(), which does a few extra checks.
This version is guaranteed to return only a list of true strings, whereas dir() returns anything that objects inject into themselves, even if they are later not really valid for attribute access (many extension libraries have such bugs).
Aliases
-
IPython.core.completer.dir2