Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Ask HN: What is the recommended style for python function defs w many args? | Better HN
Ask HN: What is the recommended style for python function defs w many args?
2 points
kortina
14y ago
3 comments
Share
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?
3 comments
default
newest
oldest
andymoe
14y 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.
kortina
OP
14y ago
Yes, good point about the refactoring.
HockeyBiasDotCo
14y ago
Multiple lines indented for me!
j
/
k
navigate · click thread line to collapse