The following issues were found

tests/cpydiff/module_array_comparison.py
1 issues
Expression "array.array('b', [1, 2]) == array.array('i', [1, 2])" is assigned to nothing
Error

Line: 9 Column: 1

              """
import array

array.array("b", [1, 2]) == array.array("i", [1, 2])

            

Reported by Pylint.

tests/basics/andor.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test short circuit expressions outside if conditionals
print(() or 1)
print((1,) or 1)
print(() and 1)
print((1,) and 1)

            

Reported by Pylint.

tests/basics/bytes_replace.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              print(b"".replace(b"a", b"b"))
print(b"aaa".replace(b"a", b"b", 0))
print(b"aaa".replace(b"a", b"b", -5))
print(b"asdfasdf".replace(b"a", b"b"))
print(b"aabbaabbaabbaa".replace(b"aa", b"cc", 3))
print(b"a".replace(b"aa", b"bb"))
print(b"testingtesting".replace(b"ing", b""))
print(b"testINGtesting".replace(b"ing", b"ING!"))


            

Reported by Pylint.

tests/unicode/unicode_chr.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              # test builtin chr with unicode characters

print(chr(945))
print(chr(0x800))
print(chr(0x10000))

            

Reported by Pylint.

shared/runtime/gchelper_generic.c
1 issues
Uninitialized variable: regs
Error

Line: 177 CWE codes: 908

              // just been allocated but not yet marked, and get incorrectly sweeped.
MP_NOINLINE void gc_helper_collect_regs_and_stack(void) {
    gc_helper_regs_t regs;
    gc_helper_get_regs(regs);
    // GC stack (and regs because we captured them)
    void **regs_ptr = (void **)(void *)&regs;
    gc_collect_root(regs_ptr, ((uintptr_t)MP_STATE_THREAD(stack_top) - (uintptr_t)&regs) / sizeof(uintptr_t));
}


            

Reported by Cppcheck.

tests/unicode/unicode_index.py
1 issues
Missing module docstring
Error

Line: 1 Column: 1

              print("Привет".find("т"))
print("Привет".find("П"))
print("Привет".rfind("т"))
print("Привет".rfind("П"))
print("Привет".index("т"))
print("Привет".index("П"))

            

Reported by Pylint.

tests/cmdline/repl_words_move.py
1 issues
invalid syntax (<unknown>, line 3)
Error

Line: 3 Column: 5

              # word movement
# backward-word, start in word
234b1
# backward-word, don't start in word
234    b1
# backward-word on start of line. if cursor is moved, this will result in a SyntaxError
1 2 + 3b+
# forward-word, start in word
1+2 12+f+3

            

Reported by Pylint.

tests/cmdline/repl_emacs_keys.py
1 issues
invalid syntax (<unknown>, line 6)
Error

Line: 6 Column: 2

              1
2
3


# input line motion
t = 12
'boofarfbar'

            

Reported by Pylint.

tests/cmdline/repl_cont.py
1 issues
invalid syntax (<unknown>, line 29)
Error

Line: 29 Column: 2

              2:'two'}
print(d[2])
def f(x):
print(x)

f(3)
if1=1
if1 = 2
print(if1)

            

Reported by Pylint.