[Python-ideas] Add a .chunks() method to sequences

Victor Stinner victor.stinner at gmail.com
Thu May 4 18:50:42 EDT 2017


2017-05-05 0:20 GMT+02:00 Greg Ewing <greg.ewing at canterbury.ac.nz>:
> While most uses would probably be for short strings, I can
> think of uses cases involving large ones. For example, to
> format a hex dump into lines with 8 bytes per line and spaces
> between the lines:

For such specialized use case, write a C extension.

Victor


More information about the Python-ideas mailing list