[Tutor] creating objects in a loop

alan.gauld@bt.com alan.gauld@bt.com
Wed, 3 Apr 2002 17:01:27 +0100


> Is this for tidiness reasons (to avoid cluttering the namespace with 
> unnecessary names), or is this convention?

Tidiness mainly but it also means you can pass the whole 
object list to another namespace if needed. eg a utility 
module function.

Creating the names at the global level can be limiting 
in terms of visibility despite the name global!

Alan G.