Comment by fwip
5 days ago
Could you expand on this? For example, this works just fine:
def silly_append(item, orig=[]):
return orig + [item]
Edit: Oh, I think you probably mean in cases where you're mutating the input list.
5 days ago
Could you expand on this? For example, this works just fine:
def silly_append(item, orig=[]):
return orig + [item]
Edit: Oh, I think you probably mean in cases where you're mutating the input list.
No comments yet
Contribute on Hacker News ↗