[Python-Dev] random.jumpback?
Guido van Rossum
guido@digicool.com
Wed, 14 Feb 2001 08:52:27 -0500
> [Skip Montanaro]
> > I was adding __all__ to the random module and I noticed this very
> > unpythonic example in the module docstring:
> >
> > >>> g = Random(42) # arbitrary
> > >>> g.random()
> > 0.25420336316883324
> > >>> g.jumpahead(6953607871644L - 1) # move *back* one
> > >>> g.random()
> > 0.25420336316883324
[Tim]
> Did you miss the sentence preceding the example, starting "Just for fun"?
In that vein, the example isn't compatible with doctest, is it?
--Guido van Rossum (home page: http://www.python.org/~guido/)