[New-bugs-announce] [issue26766] Redundant check in bytearray_mod

Berker Peksag report at bugs.python.org
Fri Apr 15 05:43:21 EDT 2016

New submission from Berker Peksag:

I noticed this while looking at issue 26764.

bytearray_mod() and bytearray_format() both have checks for PyByteArray_Check(v). The check in bytearray_format() looks redundant to me.

Here is a patch.

components: Interpreter Core
files: bytearray_mod.diff
keywords: patch
messages: 263462
nosy: berker.peksag, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Redundant check in bytearray_mod
type: enhancement
versions: Python 3.6
Added file: http://bugs.python.org/file42466/bytearray_mod.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list