From 4606bf0dee27e669087ae28e1f6fbe90b8a2fa58 2006-11-21 19:18:57 From: vivainio Date: 2006-11-21 19:18:57 Subject: [PATCH] ipy_profile_sh now has "depth" in the monkeypatch lambda for var_expand --- diff --git a/IPython/UserConfig/ipy_profile_sh.py b/IPython/UserConfig/ipy_profile_sh.py index d783d45..9968b4f 100644 --- a/IPython/UserConfig/ipy_profile_sh.py +++ b/IPython/UserConfig/ipy_profile_sh.py @@ -92,7 +92,8 @@ def extend_shell_behavior(ip): from IPython.Itpl import ItplNS from IPython.genutils import shell # utility to expand user variables via Itpl - ip.IP.var_expand = lambda cmd, lvars=None: \ + # xxx do something sensible with depth? + ip.IP.var_expand = lambda cmd, lvars=None, depth=2: \ str(ItplNS(cmd.replace('#','\#'), ip.IP.user_ns, get_locals())) def get_locals():