Hello,

You can use this as indicated by Hans:

   u = [user() for i in xrange(5)]

where "user" is a class or a function returning an object.
u then is a list of "user" objects.

or does it somehow work? how would I address them if they all have the
name 'u'?

You'd access members of the list as u[0], u[1], ... etc.
I think you'd benefit from reading an introductory programming book.

Best regards,
Stefaan.
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to