On Tue, May 2, 2017 at 8:43 PM, Steven D'Aprano <[email protected]> wrote:
> String methods should return strings.
>
>>> "A-B-C".split("-")
['A', 'B', 'C']
If chunk() worked for all iterables:
>>> " ".join("1234ABCDEF".chunk(4))
"1234 ABCD EF"
Cheers,
--
Juancarlo *Añez*
_______________________________________________ Python-ideas mailing list [email protected] https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/
