Is there any way to create many objects at once in Python?
Let say, that I want to populate a list with 1.000.000 object instances. Instead of initializing objects one-by-one in loop, is there any way to create them in one call?
Iterating one-by-one takes some time and I am looking for a way other than running many threads to reduce this time.
My adventure with Python started a month ago, so I am quite unaware of many Python specific tricks. Any hints how to deal with this problem?