[Python-Dev] Re: PEP 467 feedback from the Steering Council

2021年8月03日 13:27:09 -0700

Thanks for responding Ethan.
> On Aug 3, 2021, at 10:48, Ethan Furman <[email protected]> wrote:
> 
> I would rather keep `bchr` and lose the `.fromint()` methods.
> 
> To get bytes:
> 
> some_var = bchr(65)
> vs
> some_var = bytes.fromint(65)
> 
> and for bytearrays
> 
> some_var = bytearray(bchr(65))
> vs
> some_var = bytearray.from_int(65)
Can you provide some rationale for why you prefer bchr() over .fromint()?
Cheers,
-Barry

Attachment: signature.asc
Description: Message signed with OpenPGP

_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/IFRHLJKGELM2GJ2FFIQG5OR4VPGB4HI4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to