[Python-3000] Heaptypes

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 17 06:52:27 CEST 2007


Guido van Rossum schrieb:
> That sounds like a good idea to try. It may break some more tests but
> those are all indications of places that incorrectly still require
> str8.
> 
>> I wonder whether the "s" specifier in CallFunction, BuildValue etc
>> should create Unicode objects, rather than str8 objects.

Done. I fixed a number of test cases that broke because of that.
In particular, bytes.__reduce__ could not easily return str8 objects
as its marshalling state anymore (and shouldn't do so, anyway).
So I made bytes a builtin type of pickle, using the S code.
As a consequence, a number of other types had to get fixed.

So in total, it adds one new failure: something in test_pickle
now complains that bytes objects are not hashable.

Regards,
Martin


More information about the Python-3000 mailing list