develooper Front page | perl.perl5.porters | Postings from January 2020

Re: “strict” strings?

Thread Previous | Thread Next
From:
Tony Cook
Date:
January 7, 2020 03:44
Subject:
Re: “strict” strings?
Message ID:
20200107034451.GF5228@mars.tony.develop-help.com
On Tue, Jan 07, 2020 at 02:36:56PM +1100, Tony Cook wrote:
> If I understand the code either way it ends up with a string object,
> not a bytes object ( decoded with struct.unpack with a format of
> "<length>s" which returns a string ).

I was looking at the 2.x documentation, p appears to return a bytes
object now.

I wonder if that's a deliberate change (since the old broken code
returns a string.)

https://github.com/Sereal/Sereal/blob/master/Python/README.md

Also apparently:

- Not Perl compatible

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About