Message162022
# this runs with python2.7, not with python3.2
class Foo(object):
class Bar(object):
pass
Attr = [Bar()for n in range(10)]
# solved in this way ...
class Foo(object):
class Bar(object):
pass
Attr = []
for n in range(10): Attr.append(Bar()) |
|
Date |
User |
Action |
Args |
2012-05-31 21:40:55 | josmiley | set | recipients:
+ josmiley |
2012-05-31 21:40:54 | josmiley | set | messageid: <1338500454.97.0.157911114425.issue14972@psf.upfronthosting.co.za> |
2012-05-31 21:40:54 | josmiley | link | issue14972 messages |
2012-05-31 21:40:54 | josmiley | create | |
|