[IPython-dev] underscore and gettext interaction

Ville Vainio vivainio at kolumbus.fi
Fri Jul 2 08:48:33 CDT 2004


Fernando Perez wrote:

> Do you mean circumvented by the user?  That's definitely an option, 
> but I'd like to really fix it in the core.  Especially because they 
> would have to do
>
> l.install();tr=_
>
> so that it all happens before ipython has a chance to mangle the _ 
> variable. Plus, it makes testing of real code fragments which rely on 
> _ tricky in ipython.  So I think it's worth fixing it for real.

Apparently normal python interactive interpreter stores "_" in 
__builtin__, which should achieve what you want...




More information about the IPython-dev mailing list