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.

作者 ncoghlan
收信人 anasofiapaixao, dcbbcd, docs@python, eric.araujo, ezio.melotti, georg.brandl, ncoghlan, rhettinger, terry.reedy
日期 2012-01-27.14:33:46
SpamBayes Score 3.9327647e-06
Marked as misclassified
Message-id <1327674827.58.0.530581465007.issue4966@psf.upfronthosting.co.za>
In-reply-to
内容
One other things the branch doesn't currently sort out is the official signature of count() and index().

In 3.2, for *all* of str, bytes, bytearray, tuple, list, range, the index() method takes the optional start:stop parameters.

collections.Sequence.index(), OTOH, does not.

count() splits the field more evenly: str, bytes, bytearray accept the extra parameters, but list, tuple, range and collections.Sequence only support counting values in the whole sequence.
历史
日期 用户 动作 参数
2012-01-27 14:33:47ncoghlan修改recipients: + ncoghlan, georg.brandl, rhettinger, terry.reedy, dcbbcd, ezio.melotti, eric.araujo, docs@python, anasofiapaixao
2012-01-27 14:33:47ncoghlan修改messageid: <1327674827.58.0.530581465007.issue4966@psf.upfronthosting.co.za>
2012-01-27 14:33:47ncoghlan链接issue4966 messages
2012-01-27 14:33:46ncoghlan创建