Patches item #1113421, was opened at 2005-01-31 21:16 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1113421&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Tests Group: Python 2.5 >Status: Closed Resolution: Accepted Priority: 5 Submitted By: Francis Girard (francisgirard) Assigned to: Reinhold Birkenfeld (birkenfeld) 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 ---------------------------------------------------------------------- >Comment By: Reinhold Birkenfeld (birkenfeld) Date: 2005-08-24 11:04 Message: Logged In: YES user_id=1188172 Okay, committed as Lib/test/test_generators.py r1.47. ---------------------------------------------------------------------- Comment By: Raymond Hettinger (rhettinger) Date: 2005-08-24 09:15 Message: Logged In: YES user_id=80475 Reinhold, feel free to check this in for Py2.5. Do parenthetically note that FP means "functional programming". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1113421&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
