Files
codeql/python/ql/test/query-tests/Statements/general/performance.py
2026-06-15 16:15:17 +01: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]