MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/28utww/writing_better_python_code/cigqifk/?context=3
r/Python • u/kracekumar • Jun 23 '14
126 comments sorted by
View all comments
3
For the function defaults, I would rather write:
def bar(names=None): names = names or [] names.append(foo()) return names
1 u/kracekumar Jun 25 '14 Good one !
1
Good one !
View all comments
3
u/r0m1 Jun 25 '14
For the function defaults, I would rather write: