# Mutable default arg persists: def f(a,l=[]) called f(1) then f(2) returns [1, 2] (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/mutable-default-arg-persists-def-f-a-l-called-f-1-then-f-2-returns-1-2-python-3-12-10-windows-11-91c944e13dd0
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, semantics, defaults

Observed second call result [1, 2].
