You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / utils / dir2 / dir2

function

IPython.utils.dir2:dir2

source: /IPython/utils/dir2.py :22

Signature

def   dir2 ( obj )

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