UW AMath High Performance Scientific Computing
 
AMath 483/583 Class Notes
 
Spring Quarter, 2011

Previous topic

Python dictionaries

Next topic

Python vectorization

This Page

Allocating memory in PythonΒΆ

See the example in Timing and profiling computer codes for an illustration of how bad it can be to create a long list by repeatedly appending items to a empty list.