Update of /cvsroot/python/python/dist/src/Misc In directory sc8-pr-cvs1:/tmp/cvs-serv26769/Misc Modified Files: NEWS Log Message: Added itertools.tee() It works like the pure python verion except: * it stops storing data after of the iterators gets deallocated * the data queue is implemented with two stacks instead of one dictionary. Index: NEWS =================================================================== RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v retrieving revision 1.875 retrieving revision 1.876 diff -C2 -d -r1.875 -r1.876 *** NEWS 23 Oct 2003 23:54:57 -0000 1.875 --- NEWS 24 Oct 2003 08:45:22 -0000 1.876 *************** *** 74,77 **** --- 74,95 ---- - Implemented (?(id/name)yes|no) support in SRE (#572936). + - random.seed() with no arguments or None uses time.time() as a default + seed. Modified to match Py2.2 behavior and use fractional seconds so + that successive runs are more likely to produce different sequences. + + - random.Random has a new method, getrandbits(k), which returns an int + with k random bits. This method is now an optional part of the API + for user defined generators. Any generator that defines genrandbits() + can now use randrange() for ranges with a length >= 2**53. Formerly, + randrange would return only even numbers for ranges that large (see + SF bug #812202). Generators that do not define genrandbits() now + issue a warning when randrange() is called with a range that large. + + - itertools now has a new function, tee() which produces two independent + iterators from a single iterable. + + - itertools.izip() with no arguments now returns an empty iterator instead + of raising a TypeError exception. + Library ------- *************** *** 108,126 **** allow any iterable. Also the Set.update() has been deprecated because it duplicates Set.union_update(). - - - random.seed() with no arguments or None uses time.time() as a default - seed. Modified to match Py2.2 behavior and use fractional seconds so - that successive runs are more likely to produce different sequences. - - - random.Random has a new method, getrandbits(k), which returns an int - with k random bits. This method is now an optional part of the API - for user defined generators. Any generator that defines genrandbits() - can now use randrange() for ranges with a length >= 2**53. Formerly, - randrange would return only even numbers for ranges that large (see - SF bug #812202). Generators that do not define genrandbits() now - issue a warning when randrange() is called with a range that large. - - - itertools.izip() with no arguments now returns an empty iterator instead - of raising a TypeError exception. - _strptime.py now has a behind-the-scenes caching mechanism for the most --- 126,129 ----