Newbie ?:A more concise way?

Brian brian at lodoss.org
Sun Mar 3 21:04:04 EST 2002


Regarding:

z = [MyClass() for i in xrange(y)]

Is there a way to do this without the use of i?

Thanks!



More information about the Python-list mailing list