Pickle translation

Andrew Kuchling akuchlin at mems-exchange.org
Thu Jul 12 10:18:22 EDT 2001


Skip Montanaro <skip at pobox.com> writes:
> Interpretation of \x escapes was tightened up in 2.0 I believe.  In versions
> earlier than 2.0 '\xyy' is interpreted as the four-character sequence:
> 
>     \ x y y
> 
> In 2.0 and 2.1 the ValueError you see is raised because "yy" can't be
> interpreted as a hex number.

But shouldn't pickle have been writing octal escapes in versions
before 2.1?  It shouldn't be generating \x escapes at all, I think.
Perhaps the best way to debug this would be to send the pickle file
to someone at Python Labs and have them dig into the problem.

--amk




More information about the Python-list mailing list