[Tutor] Ok, take one step back and let you look

Joseph J. Strout joe@strout.net
Thu, 30 Sep 1999 10:20:42 -0700

At 12:00 PM -0500 09/30/99, K P wrote:

>problem: how do I make x number of objects (that is x number of
>different object instances, not x number of the same object
>instance) appear once in the inventory, with x number of items?

I don't quite understand your question -- and I confess I haven't 
looked at the code.  But there are lots of ways to create many 

	objects = []
	for i in range(x):

or, less clearly but more succinctly:

	objects = map(lambda i:MyClass(), range(x))

Hope this helps!
-- Joe

|    Joseph J. Strout           Biocomputing -- The Salk Institute |
|    joe@strout.net             http://www.strout.net              |