This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, mintaka
Date 2009-08-22.19:47:59
SpamBayes Score 6.3402113e-06
Marked as misclassified No
Message-id <1250970481.5.0.875567065855.issue6762@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-08-22 19:48:01eric.smithsetrecipients: + eric.smith, mintaka
2009-08-22 19:48:01eric.smithsetmessageid: <1250970481.5.0.875567065855.issue6762@psf.upfronthosting.co.za>
2009-08-22 19:48:00eric.smithlinkissue6762 messages
2009-08-22 19:47:59eric.smithcreate