This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tim.peters
Recipients
Date 2004-04-21.16:46:54
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=31435

This is undocumented, hence unsupported.  pickle.py doesn't 
allow it either.  So any enhancement first requires a debate 
about whether this should be a supported use (and, if it is, 
pickle.py needs to be changed to match it).  Before then, any 
use of this is at-your-own-risk.

In the meantime, you *can* set the protocol in this 
undocumented mode:

>>> import cPickle
>>> p = cPickle.Pickler(2)
>>>

Works fine.  The constructor does undocumented type-
sniffing on its argument to determine whether it was passed 
an integer (which is taken to be a protocol argument), or not 
(then it's taken to be a file-like object).

There's no claim here that this doesn't all suck, but since it's 
all undocumented and unsupported, it's allowed to suck 
<wink>.
History
Date User Action Args
2007-08-23 14:21:08adminlinkissue939395 messages
2007-08-23 14:21:08admincreate