Function Memory Usage

Terry Reedy tjreedy at udel.edu
Sat Nov 1 01:43:44 EDT 2008


Paulo J. Matos wrote:
> Hi all,
> 
> What's the best way to know the amount of memory allocated by a
> function 

What do you count?

def zeros(n): return [0]*n

how much memory is that?




More information about the Python-list mailing list