[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
More information about the Python-ideas mailing list
Tue May 2 08:02:11 EDT 2017
- Previous message (by thread): [Python-ideas] Add an option for delimiters in bytes.hex()
- Next message (by thread): [Python-ideas] Add an option for delimiters in bytes.hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 >> 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 at python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ >
- Previous message (by thread): [Python-ideas] Add an option for delimiters in bytes.hex()
- Next message (by thread): [Python-ideas] Add an option for delimiters in bytes.hex()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list