Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8592303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:43:18+00:00 2026-06-11T23:43:18+00:00

As described on http://docs.python.org/tutorial/controlflow.html : Wrap lines so that they don’t exceed 79 characters.

  • 0

As described on http://docs.python.org/tutorial/controlflow.html :

Wrap lines so that they don’t exceed 79 characters.

Usualy i use breaklines on line 80, but sometimes i have functions that requires many arguments, as an example:

extractor.get_trigger_info(cur,con,env,family,iserver,version,login,password,prefix,proxyUser,proxyPass,proxyServer,triggerPage,triggerInfo)

So, what type of advice could be given for keep the guidelines on python coding Style ? what is the best practice for functions with many arguments ?

THanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T23:43:19+00:00Added an answer on June 11, 2026 at 11:43 pm

    The definitive reference for questions like these is PEP 8. PEP 8 gives you the freedom to break pretty much anywhere you want (provided you break after a binary operator and use implied line-continuation inside parenthesis). Whenever you break a line, typically the next line starts in the column after the opening parenthesis:

    def func_with_lots_of_args(arg1, arg2, arg3,
                               arg4, arg5):
    

    My personal style is to try to arrange things so that the stuff on each line after the break is roughly the same length.

    def func(arg1, arg2, arg3,
             arg4, arg5, arg6,
             kwd='foobar'):
    

    rather than:

    def func(arg1, arg2, arg3,
             arg4, arg5, arg6, kwd='foobar'):
    

    Although PEP8 doesn’t really say you need to do it this way.


    As a side note, if you have a function with that many positional arguments, you should probably reconsider your program design.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to extend the Queue.PriorityQueue described here: http://docs.python.org/library/queue.html#Queue.PriorityQueue The queue will hold
described in http://code.google.com/intl/en/appengine/docs/python/datastore/propertyclass.html#Property but there is no example code. i code sth like: class
How can I use the new Objective-C literals described here: http://clang.llvm.org/docs/ObjectiveCLiterals.html ? I have
I don't understand why async as described here http://www.rebol.com/article/0050.html is no more available in
I've implemented authentication through WS-Security on my webservice as described at http://static.springframework.org/spring-ws/sites/1.5/reference/html/security.html , like
I launched the SASS interactive shell, as described at http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#interactive_shell I can't (gracefully) quit.
I would like to use ssl / https as described in http://docs.codehaus.org/display/JETTY/How+to+configure+SSL using jetty-maven-plugin,
I found a good article on Hibernate associations mapping ( http://docs.jboss.org/hibernate/core/3.5/reference/en/html/associations.html ). Could the
When acting as a reverse proxy, apache adds x-forwarded headers as described here. http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#x-headers
Like described in the docs.. http://download1.parallels.net/Plesk/PP10/10.2.0/Doc/en-US/online/plesk-api-rpc/index.htm?fileName=53497.htm It should be possible to change the home-location

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.