Y
Hacker News
new
|
ask
|
show
|
jobs
Ask HN: What is the recommended style for python function defs w many args?
2 points
by
kortina
5523 days ago
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?
2 comments
andymoe
5523 days ago
I 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.
link
kortina
5523 days ago
Yes, good point about the refactoring.
link
HockeyBiasDotCo
5523 days ago
Multiple lines indented for me!
link