Re: Strange KeyError using cPickle
- From: "Rune Strand" <rune.strand@xxxxxxxxx>
- Date: 1 Jun 2005 19:05:14 -0700
[Tim Peters]
> What is "XWwz"? Assuming it's a bizarre typo for "open", change the
> 'w' there to 'wb'. Pickles are binary data, and files holding pickles
> must be opened in binary mode, especially since:
>
> > ...
> > (on WinXP, CPython 2.4.1)
Thanks Tim. The bizarre 'typo' appears to be caused by ad-blocking
software confusing python code with javascript (i think).
I had the feeling this was a red facer.
Setting the protocol to 0 (text) also make it work.
.
- Follow-Ups:
- Re: Strange KeyError using cPickle
- From: Tim Peters
- Re: Strange KeyError using cPickle
- References:
- Strange KeyError using cPickle
- From: Rune Strand
- Re: Strange KeyError using cPickle
- From: Tim Peters
- Strange KeyError using cPickle
- Prev by Date: Re: any macro-like construct/technique/trick?
- Next by Date: Re: Pressing A Webpage Button
- Previous by thread: Re: Strange KeyError using cPickle
- Next by thread: Re: Strange KeyError using cPickle
- Index(es):