
Aug. 3, 2021
8:48 p.m.
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~