This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: New tutorial tests in test_generators.py
Type: Stage:
Components: Tests Versions: Python 2.5
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: francisgirard, georg.brandl, georg.brandl, rhettinger
Priority: normal Keywords: patch

Created on 2005-01-31 20:16 by francisgirard, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_generators.py.310105.diff francisgirard, 2005-01-31 20:16 Patch for test_generators.py
Messages (3)
msg47636 - (view) Author: Francis Girard (francisgirard) Date: 2005-01-31 20:16
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 
msg47637 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-08-24 07:15
Logged In: YES 
user_id=80475

Reinhold, feel free to check this in for Py2.5.
Do parenthetically note that FP means "functional programming".
msg47638 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-08-24 09:04
Logged In: YES 
user_id=1188172

Okay, committed as Lib/test/test_generators.py r1.47.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41510
2005-01-31 20:16:03francisgirardcreate