[IPython-dev] [Fwd: [afayolle at debian.org: Bug#374625: python2.3-ipython: help built-in function does not work]]
vivainio at gmail.com
Fri Aug 11 04:21:31 CDT 2006
On 8/10/06, Ville Vainio <vivainio at gmail.com> wrote:
> I think it works now (fm3.diff, attached. Please apply against HEAD,
> not fm2.diff).
> FakeModule now "forwards" all getattr calls to the dictionary it was
> instantiated with:
> def __getattr__(self,key):
> - try:
> - return self.__dict__[key]
> - except KeyError, e:
> - raise AttributeError("FakeModule object has no attribute %s" % e)
> + try:
> + return self.__origdict[key]
> + except KeyError, e:
> + raise AttributeError("FakeModule object has no attribute %s" % e)
> If everything goes w/o a hitch tomorrow I think I'll push this to
> trunk for the unwary users :-).
It's now in trunk; the only thing that needed changing was
FakeModule.py, Magic.py changes were made redundant by forwarding
fakemodule getattr's to the provided dictionary.
The monkeypatch is now removed.
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'
More information about the IPython-dev