[Python-ideas] chunks implementation

Antoine Pitrou solipsis at pitrou.net
Wed May 1 17:09:23 CEST 2013


On Wed, 1 May 2013 17:56:28 +0300
anatoly techtonik <techtonik at gmail.com>
wrote:
> 16+ hours work.
> 
> print(list( chunks('sadfdfa', 3) ))
> print(list( chunks(range(8), 3) ))
> print(list( chunks([1,2,3,4,5,7], 3) ))

As long as you are not willing to sign a contributor's agreement,
there's no point posting any code snippets or patches here.
If you want advice about your personal work, it is off-topic for
python-ideas, please use python-list instead.

Thank you,

Antoine.





More information about the Python-ideas mailing list