[Python-ideas] Add an option for delimiters in bytes.hex()
Joao S. O. Bueno
jsbueno at python.org.br
Tue May 2 08:02:11 EDT 2017
On 1 May 2017 at 11:04, Juancarlo Añez <apalala at gmail.com> wrote:
> On Mon, May 1, 2017 at 9:38 AM, Nick Coghlan <ncoghlan at 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
> I'd expect "chunk_size" to mean the number of hex digits (not bytes) per
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" .
> Juancarlo Añez
> Python-ideas mailing list
> Python-ideas at python.org
> Code of Conduct: http://python.org/psf/codeofconduct/
More information about the Python-ideas