Replacement for keyword 'global' good idea? (e.g. 'modulescope'or 'module' better?)

Terry Reedy tjreedy at udel.edu
Tue Aug 16 19:24:04 EDT 2005


"Bengt Richter" <bokr at oz.net> wrote in message 
news:4302228e.1621136831 at news.oz.net...
> IOW, "...open the box and find the i'th item /in/ the box..." is not 
> really
> finding the i'th item _itself_ "/in/" the box. It is finding one end of a 
> string
> tied to some point /in/ the box, but the actual item/object is at the 
> other end
> of the string, not /in/ the box, and many other strings may potentially 
> also
> be leading to the same object, whether originating from anonymous 
> structural
> binding points in other objects, or named binding points in 
> name-tag-containing
> objects/namespaces.

The way I think of it is that Python's collective objects are like club 
rosters: one person (object) can be on many rosters.  A container would be 
like a room, and a person could only be in one room at a time.

Terry J. Reedy






More information about the Python-list mailing list