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 rhettinger
Recipients achampion, mark.dickinson, rhettinger
Date 2015-10-26.03:44:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445831048.07.0.180764305132.issue25193@psf.upfronthosting.co.za>
In-reply-to
Content
To me prime sieve demos and puzzle problems aren't motivating use cases.  Also, the two examples in the single stack-exchange answer become awkward because they would also need a middle argument for the accumulation function:

Current:
  cs = accumulate(chain([11], cycle(wh11)))
  wheel = accumulate(chain([psq+x[i]], cycle(x[i+1:] + x[:i+1])))

Proposed:
  cs = accumulate(cycle(wh11), operator.add, 11)
  wheel = accumulate(cycle(x[i+1:] + x[:i+1]), operator.add, psq+x[i])

IMO both of the newer ones are wordier, don't read well, and are slower.  

After more thought, I've decided to stick with the original decision and decline the feature request.  There are other major languages that seem to do fine without the feature, the current approach works fine, my search for possible use cases shows that they are uncommon or contrived, and looking at the revised examples I just don't think that the newer code reads well.
History
Date User Action Args
2015-10-26 03:44:08rhettingersetrecipients: + rhettinger, mark.dickinson, achampion
2015-10-26 03:44:08rhettingersetmessageid: <1445831048.07.0.180764305132.issue25193@psf.upfronthosting.co.za>
2015-10-26 03:44:08rhettingerlinkissue25193 messages
2015-10-26 03:44:07rhettingercreate