On 18 March 2015 at 00:35, Mark Lawrence <breamore...@yahoo.co.uk> wrote:
> I've just come across this
> http://www.stavros.io/posts/brilliant-or-insane-code/ as a result of this
> http://bugs.python.org/issue23695
>
> Any and all opinions welcomed, I'm chickening out and sitting firmly on the
> fence.

It seems fine to me. The code in question was rightly put into a
sensibly named function to avoid confusion (although the doc-string is
a little confusing).

The timing comparison with numpy.reshape is unfair though:
numpy.reshape is for working with numpy arrays and is vastly more
efficient than the zip method when used as intended.


Oscar
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to