[Python-ideas] a new bytestring type?

Geert Jansen geertj at gmail.com
Tue Jan 7 06:32:11 CET 2014


On Mon, Jan 6, 2014 at 7:53 PM, Mark Janssen <dreamingforward at gmail.com> wrote:
>>> How many would be interested in having a 'bytestring'?
>>
>> I'm not missing a new type, but I am missing the format method on the
>> binary types.
>
> Wouldn't a type "cast" like TextFile(bytestring) be sufficient?

Unless I'm missing something, no. For the use case described the
result needs to be a bytes object.

Regards,
Geert


More information about the Python-ideas mailing list