>>> def foo(): ... # do something ... >>> a = [] >>> for i in range(3): ... a.append(foo()) ... >>> a [] >>>
--Jach -- https://mail.python.org/mailman/listinfo/python-list
>>> def foo(): ... # do something ... >>> a = [] >>> for i in range(3): ... a.append(foo()) ... >>> a [] >>>
--Jach -- https://mail.python.org/mailman/listinfo/python-list