➜

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.

作者 kristjan.jonsson
收信人 BreamoreBoy, ajaksu2, benjamin.peterson, dcjim, elachuni, gvanrossum, jon, kristjan.jonsson, mark.dickinson, pitrou, qelan, tseaver, vdupras, vstinner
日期 2013-11-19.10:47:25
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1384858045.94.0.101364861902.issue7105@psf.upfronthosting.co.za>
In-reply-to
内容
The changes for the docs are just a port of the original patch.  And indeed, these functions don't return an iterator, but a generator object.

I admit I'm confused by the difference, since next() can be called directly on the generator.  Still, a lot of code in the test explicitly calls iter() on the iterators before doing next().  Not sure why.

The commented out line is an artifact, I'll remove it, the correct one is the test for 20 items.

Otherwise, I have no vested interest in getting this in.  My porting this is just me contributing to 2.7.  If it's vetoed, we'll just put it in 2.8.
历史
日期 用户 动作 参数
2013-11-19 10:47:25kristjan.jonsson修改recipients: + kristjan.jonsson, gvanrossum, dcjim, tseaver, mark.dickinson, pitrou, vstinner, ajaksu2, jon, benjamin.peterson, vdupras, elachuni, BreamoreBoy, qelan
2013-11-19 10:47:25kristjan.jonsson修改messageid: <1384858045.94.0.101364861902.issue7105@psf.upfronthosting.co.za>
2013-11-19 10:47:25kristjan.jonsson链接issue7105 messages
2013-11-19 10:47:25kristjan.jonsson创建