[Python-Dev] Python 3.x and bytes

Stefan Behnel stefan_ml at behnel.de
Thu May 19 08:11:20 CEST 2011


Greg Ewing, 19.05.2011 00:02:
> Georg Brandl wrote:
>
>> We do have
>>
>> bytes.fromhex('deadbeef')
>
> But again, there is a run-time overhead to this.

Well, yes, but it's negligible if you assign it to a suitable variable first.

Stefan



More information about the Python-Dev mailing list