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 LordVilgefortz
Recipients LordVilgefortz
Date 2021-06-30.16:24:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1625070269.09.0.120970069586.issue44541@roundup.psfhosted.org>
In-reply-to
Content
Hello,

https://github.com/python/cpython/blob/3.9/Lib/_collections_abc.py#L1012
Shouldn't the loop condition be i <= 0 not i < 0? The implementation now is causing not to search in 1-element sequences, since it raises ValueError. Please let me know if this is the expected behaviour.

Kind regards,
Maciej Kopeć
History
Date User Action Args
2021-06-30 16:24:29LordVilgefortzsetrecipients: + LordVilgefortz
2021-06-30 16:24:29LordVilgefortzsetmessageid: <1625070269.09.0.120970069586.issue44541@roundup.psfhosted.org>
2021-06-30 16:24:29LordVilgefortzlinkissue44541 messages
2021-06-30 16:24:29LordVilgefortzcreate