[issue37840] bytearray_getitem() handles negative index incorrectly
Sergey Fedoseev
report at bugs.python.org
Tue Aug 13 07:50:02 EDT 2019
New submission from Sergey Fedoseev <fedoseev.sergey at gmail.com>:
bytearray_getitem() adjusts negative index, though that's already done by PySequence_GetItem().
This makes PySequence_GetItem(bytearray(1), -2) to return 0 instead of raise IndexError.
----------
components: Interpreter Core
messages: 349545
nosy: sir-sigurd
priority: normal
severity: normal
status: open
title: bytearray_getitem() handles negative index incorrectly
type: behavior
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37840>
_______________________________________
More information about the Python-bugs-list
mailing list