Specifically, do you use multiple lines, and if so, are there any indentation best practices? Or do you always use a single line function definition?
Ask HN: What is the recommended style for python function defs w many args?
1–4 of 4 posts
Re: Ask HN: What is the recommended style for python function defs w many args?
#2I use multiple lines but if it's more than four or so args I usually think to myself. "Am I doing this wrong?" and try to refractor and do it 20% smarter.
Re: Ask HN: What is the recommended style for python function defs w many args?
#3Multiple lines indented for me!
Re: Ask HN: What is the recommended style for python function defs w many args?
#4I use multiple lines but if it's more than four or so args I usually think to myself. "Am I doing this wrong?" and try to refractor and do it 20% smarter.
Yes, good point about the refactoring.