On 1 May 2017 at 11:04, Juancarlo Añez <apal...@gmail.com> wrote:
>
> On Mon, May 1, 2017 at 9:38 AM, Nick Coghlan <ncogh...@gmail.com> wrote:
>>
>> just support two
>> keyword arguments to hex(): "delimiter" (as you suggest) and
>> "chunk_size" (defaulting to 1, so you get per-byte chunking by
>> default)
>
>
> I'd expect "chunk_size"  to mean the number of hex digits (not bytes) per
> chunk.
So do I. Moreover, if "1" is for two digits, there is no way to
specify single digits - for little use we can perceive for that.

Maybe it does not need to be named "chunk_size" - "digits_per_block"
is too big, but is precise.

Also, whatever we think is good for "hex" could also be done to "bin" .

>
> Cheers,
>
>
> --
> Juancarlo Añez
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas@python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to