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

2021年8月03日 13:50:18 -0700

On 8/3/21 1:19 PM, Barry Warsaw wrote:
> Can you provide some rationale for why you prefer bchr() over .fromint()?
- `bchr` directly corresponds with `chr`
- `str` has no `fromint`
- `bytearray(bchr(int))` is roughly the same as `bytearray.fromint(int)`, but
 `bchr(int)` for a bytes object is much nicer that `bytes.fromint(int)`
- possible confusion between `fromsize` and `fromint` (I know it would get me
 from time to time)
--
~Ethan~
_______________________________________________
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/5PDMVAVBELIPG23TOCTLEDA6DWYVYBAC/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to