A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/039752.html below:

[Python-checkins]python/nondist/pepspep-0323.txt, NONE, 1.1 pep-0000.txt, 1.254, 1.255

[Python-Dev] RE: [Python-checkins]python/nondist/pepspep-0323.txt, NONE, 1.1 pep-0000.txt, 1.254, 1.255Delaney, Timothy C (Timothy) tdelaney at avaya.com
Tue Oct 28 18:17:58 EST 2003
> From: Alex Martelli [mailto:aleaxit at yahoo.com]
> 
> Come to think of this, there may be other use cases for this
> general approach than "random iterators".  Do you think that
> an iterator on a callable *and args for it* would live well in
> itertools?  That module IS, after all, your baby...

Hmm - I like the idea of this.

    import itertools

    d10 = itertools.icall(random.randint, (1, 10,))

    for i in range(10):
        print d10.next()

Tim Delaney

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4