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.

Author achampion
Recipients achampion, mark.dickinson, rhettinger
Date 2015-10-26.00:57:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445821073.75.0.823800454224.issue25193@psf.upfronthosting.co.za>
In-reply-to
Content
If you are looking for other examples.
Here's a wheel factorization of an indefinite sieve (primes) that was peer reviewed on codereview.stackexchange.com, see the final result in the last post by Will Ness: http://codereview.stackexchange.com/questions/92365/wheel-based-unbounded-sieve-of-eratosthenes-in-python which included two uses of accumulate(chain(...), ...).

Constructing and unpacking the list in a chain seems like an unnecessary overhead when all you are looking for is an initial value. The reason I suggested it as the 3rd argument is it is the "most" optional argument and mirrors reduce (though iterable, function is the reverse of reduce).
History
Date User Action Args
2015-10-26 00:57:53achampionsetrecipients: + achampion, rhettinger, mark.dickinson
2015-10-26 00:57:53achampionsetmessageid: <1445821073.75.0.823800454224.issue25193@psf.upfronthosting.co.za>
2015-10-26 00:57:53achampionlinkissue25193 messages
2015-10-26 00:57:53achampioncreate