[Python-Dev] RE: [Python-checkins]python/nondist/pepspep-0323.txt, NONE, 1.1 pep-0000.txt, 1.254, 1.255
Delaney, Timothy C (Timothy)
tdelaney at avaya.com
Tue Oct 28 18:17:58 EST 2003
More information about the Python-Dev mailing list
Tue Oct 28 18:17:58 EST 2003
- Previous message: Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')
- Next message: Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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
- Previous message: Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')
- Next message: Adaptation and typecasting (was Re: [Python-Dev] replacing 'global')
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list