[IPython-dev] [Fwd: [afayolle at debian.org: Bug#374625: python2.3-ipython: help built-in function does not work]]
vivainio at gmail.com
Thu Aug 10 12:40:27 EDT 2006
On 8/10/06, Ville Vainio <vivainio at gmail.com> wrote:
> > I honestly don't remember the exact details, but it's there to protect
> > against some bugs which were reported a while back with users pickling
> > and unpickling normal data during an interactive session, not
> > necessarily ipython-specific variables or macros.
> I'll try to look for the rationale for FakeModule tonight; I have a
> faint memory that it was introduced after %store, so that user was
> warned properly when trying %store instances of classes declared
The attached patch inherits FakeModule from types.ModuleType and fixes
the reported problem; unfortunately, this implies that the __dict__
of the module can't point directly at user_ns, which MIGHT break some
stuff; take a look at it and tell me what you think.
Note that you'll need to do
svn merge -r HEAD:1570
to revert your monkeypatching fix.
Ville Vainio - vivainio.googlepages.com
vainio.blogspot.com - g[mail | talk]='vivainio'
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1438 bytes
Desc: not available
More information about the IPython-dev