Message91872
For types where it's possible, the str or repr returns a string that can
be passed to eval:
>>> for i in eval(str(xrange(5))):
... print i
...
0
1
2
3
4
xrange (and list, and tuple, and others) fall into this category. |
|
Date |
User |
Action |
Args |
2009-08-22 19:48:01 | eric.smith | set | recipients:
+ eric.smith, mintaka |
2009-08-22 19:48:01 | eric.smith | set | messageid: <1250970481.5.0.875567065855.issue6762@psf.upfronthosting.co.za> |
2009-08-22 19:48:00 | eric.smith | link | issue6762 messages |
2009-08-22 19:47:59 | eric.smith | create | |
|