Function worked 10 times. Failed on the 11th. The bug was in my function signature.
python
dev.to
Function worked 10 times. Failed on the 11th. The bug was in my function signature. I had a Python function processing user submissions. Worked perfectly for the first 10 calls during testing. Called it the 11th time and suddenly got duplicate data where there shouldn't be any. No error message. Just wrong output. Simple data processor Takes a list of items, filters them, returns results: def process_items(items, results=[]): for item in items: if item['stat