On Sun, Sep 8, 2013 at 5:26 PM, Greg <greg.ew...@canterbury.ac.nz> wrote:

> On 9/09/2013 5:52 a.m., Guido van Rossum wrote:
>
>> Well, to me zip(*x) is unnatural, and it's inefficient when the arrays
>> are long.
>>
>
> Would it be worth having a transpose() function in the stdlib
> somewhere, that returns a view instead of copying the data?


I'd be hesitant to add just that one function, given that there's hardly
any support for multi-dimensional arrays in the stdlib. (NumPy of course
has a transpose(), and that's where it arguably belongs.)

-- 
--Guido van Rossum (python.org/~guido)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to