[Tutor] Unlimited string

Alan Gauld alan.gauld at blueyonder.co.uk
Mon Aug 30 09:25:16 CEST 2004


> I was wondering, is it possible in python to make a unlimited
string?
>
> Something like:
>
> (0, 1, 2, 4, 8, 16, 32, ... ect.)

Yes you can create an unlimited sequence using generators.
Check the tutorial section on generators I think it actually gives
an example. If not there is a paper on them somewhere (whats new
in Python v2.2?) that does.

Alan G.



More information about the Tutor mailing list