On Jun 7, 1:20 pm, Hans Nowak
  [user() for i in range(n)]


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


users = list(User() for i in range(n))
for user in users:
       user.do_something()

hth,
Alan Isaac

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to