[IPython-dev] [Fwd: [afayolle at debian.org: Bug#374625: python2.3-ipython: help built-in function does not work]]
fperez.net at gmail.com
Thu Aug 10 14:11:46 EDT 2006
On 8/10/06, Ville Vainio <vivainio at gmail.com> wrote:
> On 8/9/06, Fernando Perez <fperez.net 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
No, FakeModule is much, much older. I wrote that code years ago,
because users reported various obscure pickling-related problems.
Scan the changelog a little, there may be something either with
'FakeModule' or 'pickle' in there that hints at the rationale.
I'm swamped til next week, so I won't be able to really look at these
patches until then. But for testing purposes, try various
combinations of pickling reasonably complex things from the command
line and unpickling them, and do so crossing boundaries between
pickling things interactively and unpickling them from a pure python
script (run without ipython) and viceversa. There's a chance the
problem was some kind of bad interaction between pickling in ipython
and unpickling elsewhere.
More information about the IPython-dev