Re: Trying to understand pickle.loads withou class declaration

2005-05-29 Thread Sbastien Boisgrault
Even

class A:
pass

should do the trick. Only the instance attributes are saved by a
pickle,
not the methods or the class itself. The unpickler tries to merge the
saved data and the class/method info that is not saved to recreate
the fully functional instance... but of course this info should still
be available. The unpickler will even import the class from the
appropriate module if necessary.

If you want your unpickler to manufacture a class for you when
it is not available, you may use the gnosis xml pickler with the
appropriate security (paranoia) level.

http://gnosis.cx/download/gnosis/xml/pickle/

Cheers,

Seb

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: lambda a plusieurs arguments

2005-05-27 Thread Sbastien Boisgrault
Nico,

[EMAIL PROTECTED] seems to be a good place to post
questions related to Python if you intend to use
french.

- http://www.aful.org/wws/arc/python/

((
des questions rédigées en français sont plus
à leur place sur des liste de diffusions
nationales ...
))

Regards,

SB

-- 
http://mail.python.org/mailman/listinfo/python-list