Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Ask HN: What is the recommended style for python function defs w many args?
2 points
by
kortina
on April 29, 2011
|
hide
|
past
|
favorite
|
3 comments
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?
andymoe
on April 29, 2011
|
next
[–]
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
on April 29, 2011
|
parent
|
next
[–]
Yes, good point about the refactoring.
HockeyBiasDotCo
on April 29, 2011
|
prev
[–]
Multiple lines indented for me!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: