[Patches] [ python-Patches-1113421 ] New tutorial tests in
test_generators.py
SourceForge.net
noreply at sourceforge.net
Sun Feb 27 20:58:32 CET 2005
Patches item #1113421, was opened at 2005-01-31 15:16
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1113421&group_id=5470
Category: Tests
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Francis Girard (francisgirard)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: New tutorial tests in test_generators.py
Initial Comment:
Two tests in test_generators.py makes use of an ad-hoc
"LazyList" class which was a courageous attempt when it
was written. This class have some problems though. This
patch adds two more tests using the new itertools.tee
function which favourably solves the problem -- with
accompanying prose.
More importantly, it shows what I think is now the best way
to implement a whole family of classical FP algorithm in
Python.
The patch has been produce on the single file
test_generators.py (without directory information).
To apply it, change directory to :
python/dist/src/Lib/test
and simply,
patch -p0 < test_generators.py.310105.diff
The patch is here submitted after Craig Ringer had
suggested me to do so on the python discussion list
"python-list".
Francis Girard
FRANCE
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1113421&group_id=5470
More information about the Patches
mailing list