[ python-Feature Requests-960821 ] Add an updating load function in pickle

SourceForge.net noreply at sourceforge.net
Thu May 27 09:04:12 EDT 2004


Feature Requests item #960821, was opened at 2004-05-26 09:34
Message generated for change (Comment added) made by nidoizo
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=960821&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nicolas Fleury (nidoizo)
Assigned to: Nobody/Anonymous (nobody)
Summary: Add an updating load function in pickle

Initial Comment:
It would be very nice to have a function in pickle to
load an object without creating a new instance, but by
using an existing one, meaning that __init__, etc. of
an existing instance is called.

Something like:
updateload(object, file)

(I have no patch in mind.)


----------------------------------------------------------------------

>Comment By: Nicolas Fleury (nidoizo)
Date: 2004-05-27 09:04

Message:
Logged In: YES 
user_id=151545

I realize it might not be clear.  What is needed is simply a
function that does the same as pickle.load but that uses an
existing instance instead of creating another one.  All the
rest after that point is the same.  It means this function
would raise an exception if the instance is not of the good
type, etc.  (Forget the part about __init__).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=960821&group_id=5470



More information about the Python-bugs-list mailing list