Hello Vanam!
On Tuesday 30 January 2007 08:11, vanam wrote:
> can any one explain about pickle i read in the book but they have
> not provided any example for that so please explain with a simple
> example
A class can pickle itself like this:
class foo(object):
#lots of code here
def _l
vanam wrote:
> can any one explain about pickle i read in the book but they have not
> provided any example for that so please explain with a simple example
There are examples in the docs:
http://docs.python.org/lib/pickle-example.html
Kent
___
Tutor
"vanam" <[EMAIL PROTECTED]> wrote
> can any one explain about pickle i read in the book but they have
> not
> provided any example for that so please explain with a simple
> example
Conceptually it is very simple. Pickle takes a python object
and serialises it to a sequence of bytes which it st