C is it always faster than nump?

Oscar Benjamin oscar.j.benjamin at gmail.com
Fri Feb 25 22:33:06 EST 2022


On Sat, 26 Feb 2022 at 03:10, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
>
> On Fri, 25 Feb 2022 23:06:57 +0000 (UTC), Avi Gross <avigross at verizon.net>
> declaimed the following:
>
> >I do have to wonder if anyone ever considered adding back enough functionality into base Python to make some additions less needed. Is there any reason the kind of structures used by so many languages cannot be made part of python such as a vector/array that holds exactly one kind of data structure and not force use of things like a list when that is more than is needed?
> >
>         https://docs.python.org/3/library/array.html
>
> seems to fit the criteria...

The stdlib array module is basically unused in comparison to NumPy.
The capabilities of the array module do not meet the needs for most
users who want to do anything useful with arrays.

The intention in creating NumPy  (in the NumPy/SciPy split) was that
it might be possible that NumPy could be merged into core Python.
Unfortunately that didn't come to be.

--
Oscar


More information about the Python-list mailing list