[Python-Dev] PEP 285: Adding a bool type

Paul Rubin phr-n2002a at nightsong.com
Wed Apr 3 19:49:58 EST 2002


"Delaney, Timothy" <tdelaney at avaya.com> writes:
> I have only one other issue - the PEP does not deal with the case of sending
> data to an older version of Python (which I believe Alex Martelli brought
> up, though I could be wrong).
> 
> Perhaps the section that states int(bool(x)) (resolved issues) should
> include that the structure should be used for backwards-compatibility with
> previous versions of Python.

I think the pickle and cPickle constructors should take a flag to do
this conversion automatically.  For marshal, the flag isn't needed
since marshal doesn't claim to be compatible across versions.



More information about the Python-list mailing list