TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What is the recommended style for python function defs w many args?

2 pointsby kortinaabout 14 years 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

andymoeabout 14 years 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.
评论 #2498278 未加载
HockeyBiasDotCoabout 14 years ago
Multiple lines indented for me!