[Python-ideas] Builtin infinite generator

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Mar 21 23:06:39 CET 2007

Josiah Carlson wrote:

> Generally, you are pretty safe with 2**64 * increment, but
> if you are really anal, go with 2**128 * increment, that should keep you
> safe until the big freeze.

Although this will work for all practical purposes,
code which does things like this is still a bit
smelly. I prefer it when there are ways of explicitly
representing infinitely-large or unbounded values.


More information about the Python-ideas mailing list