Memory Allocation?

Chris S. chrisks at NOSPAM.udel.edu
Mon Feb 7 19:18:39 EST 2005


M.E.Farmer wrote:
> Hello Chris,
> I am sure there are many inaccuracies in this story  but hey you asked
> instead of seeking your owns answers so....
> In general you need not worry about  memory allocation.
> Too be more specific objects have a size and most of them are known (at
> least to a wizard named Tim) , but it doesn't really matter  because it
> doesn't work like that in Python.
> CPython interpreter( I have never read a lick of the source this all
> from late nite memory  ) just grabs a chunk of memory and uses it as it
> sees fit . Jython uses Java's GC . and etc..
> Now tell me do you really want to take out the garbage or look at it?
> Python does it for you so you don't have too.

Using similar logic, we shouldn't need access to the Garbage Collector 
or Profiler. After all, why would anyone need to know how fast their 
program is running or whether or not their garbage has been collected. 
Python takes care of it.



More information about the Python-list mailing list