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 vajrasky
Recipients BreamoreBoy, ezio.melotti, larry, rhettinger, serhiy.storchaka, terry.reedy, vajrasky
Date 2014-01-26.05:00:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390712444.65.0.982152465462.issue19145@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2014-01-26 05:00:44vajraskysetrecipients: + vajrasky, rhettinger, terry.reedy, larry, ezio.melotti, BreamoreBoy, serhiy.storchaka
2014-01-26 05:00:44vajraskysetmessageid: <1390712444.65.0.982152465462.issue19145@psf.upfronthosting.co.za>
2014-01-26 05:00:44vajraskylinkissue19145 messages
2014-01-26 05:00:44vajraskycreate