On Thu, Jun 17, 2010 at 11:11:11AM +0200, Eike Welk wrote:
> I think it is a bug in IPython: I can do this in regular Python, but in
> IPython I get the same error that you get:
>
Thanks a lot. It works in normal python. Thanks again.
With warm regards,
-Payal
--
On Thursday June 17 2010 11:11:11 Eike Welk wrote:
> You should file a bug report in their bug tracker:
> http://github.com/ipython/ipython/issues
I believe tthis is the bug:
http://github.com/ipython/ipython/issues/#issue/29
It seems that objects defined on IPython's top-level can't be pickled.
Hello Payal!
On Thursday June 17 2010 04:48:19 Payal wrote:
> Hi all,
> Can someone please help in this below?
>
> class F(object) :
>...: def __init__(self, amt) : self.amt = amt
>...: def dis(self) : print 'Amount : ', self.amt
>...: def add(self, na) :
>...:
Hi all,
Can someone please help in this below?
class F(object) :
...: def __init__(self, amt) : self.amt = amt
...: def dis(self) : print 'Amount : ', self.amt
...: def add(self, na) :
...: self.amt += na
...: F.dis(self)
pickle.dumps(F)
gives PicklingEr