On Thu, Feb 20, 2020 at 7:34 AM Serhiy Storchaka email@example.com wrote:
20.07.11 23:48, Sven Rahmann пише:
What's missing is the possiblity to specify the final size of the array (number of items), especially for large arrays.
array.array(typecode, [fillvalue]) * n
Perhaps the OP wanted the internal array size initialized, but not used. Currently the internal array will automatically be reallocated to grow as needed. Which could be a performance hit if you know it’s going to grow large.
But frankly, it would be a rare case where this would be noticeable.
Python-ideas mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://firstname.lastname@example.org/message/56YLYL... Code of Conduct: http://python.org/psf/codeofconduct/