➜

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.

作者 vajrasky
收信人 BreamoreBoy, ezio.melotti, larry, rhettinger, serhiy.storchaka, terry.reedy, vajrasky
日期 2014-01-26.05:00:44
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1390712444.65.0.982152465462.issue19145@psf.upfronthosting.co.za>
In-reply-to
内容
Larry said, "A proper fix for the "bug" will require changing the semantics of the function. 
It's inappropriate to do that in 2.7, 3.3, and (now that we're in beta) 3.4."

I think we can not have it all and need to be pragmatic in this ticket. While we can not fix the default value quirk in 2.7, 3.3, and 3.4, at least we can make the negative times consistent whether it is sent through positional or keyword.

Otherwise, we have to fix the doc:

repeat(object [,times])
create an iterator which returns the object for the specified number of times.  If not specified, returns the object endlessly.If times is negative and is sent via positional, it means zero repetitions. But if times is negative and is sent via keyword, it means endless repetition.

And it doesn't feel right, does it?
历史
日期 用户 动作 参数
2014-01-26 05:00:44vajrasky修改recipients: + vajrasky, rhettinger, terry.reedy, larry, ezio.melotti, BreamoreBoy, serhiy.storchaka
2014-01-26 05:00:44vajrasky修改messageid: <1390712444.65.0.982152465462.issue19145@psf.upfronthosting.co.za>
2014-01-26 05:00:44vajrasky链接issue19145 messages
2014-01-26 05:00:44vajrasky创建