Files
codeql/python/ql/test/query-tests/Statements/general/performance.py
Owen Mansel-Chan 8e07690049 Python
2026-06-10 22:57:42 +02:00

13 lines
257 B
Python

#String concat in loop
def y(seq):
y_accum = ''
for s in seq:
y_accum += s # $ Alert[py/string-concatenation-in-loop]
def z(seq):
z_accum = ''
for s in seq:
z_accum = z_accum + s # $ Alert[py/string-concatenation-in-loop]