Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: