Thanks for responding Ethan.

> On Aug 3, 2021, at 10:48, Ethan Furman <et...@stoneleaf.us> 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 -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IFRHLJKGELM2GJ2FFIQG5OR4VPGB4HI4/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to