4 ms·
Can't Python notice that a list always has the same types and do something special?
by kingkilr 13y ago
Can't Python notice that a list always has the same types and do something special?
- Ihmahr 13y agoThat could have been implemented but it is not. I dont think it will be because it is not that usefull and would be a lot of work/code for the small benefits. If you want faster python use pypy, if you want homogenieus lists you probably could use numpy arrays.