getting memory usage of varaibles

Ned Batchelder ned at nedbatchelder.com
Wed May 3 20:32:06 EDT 2017


On Wednesday, May 3, 2017 at 8:09:59 PM UTC-4, Steve D'Aprano wrote:
> On Thu, 4 May 2017 09:30 am, Ned Batchelder wrote:
> 
> > Functions, classes, and modules can also be referred to by a number of
> > variables:
> > 
> >     def foo(): pass
> >     bar = baz = foo
> > 
> > But functions (by virtue of the name in the def statement) have an
> > inherent name, 
> 
> Indeed; but we also have anonymous functions:

Yes, I was trying to make a simple point, without pulling too much other
esoterica.  I guess I should have known better. :)

--Ned.



More information about the Python-list mailing list