scope of function parameters

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon May 30 05:16:27 EDT 2011


On Mon, 30 May 2011 09:12:50 +0200, Laurent Claessens wrote:

> Could you give an example of an object that has no name ? I've missed
> something ...


>>> mylist = [None, 42, "something"]


The list object has a name, mylist.

The three objects inside the list have no names.


-- 
Steven



More information about the Python-list mailing list