About 36,600 results
Open links in new tab
  1. How can I do a line break (line continuation) in Python (split up a ...

    319 From PEP 8 -- Style Guide for Python Code: The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines …

  2. Is it possible to break a long line to multiple lines in Python ...

    786 From PEP 8 - Style Guide for Python Code: The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. If …

  3. Python style - line continuation with strings? - Stack Overflow

    In trying to obey the python style rules, I've set my editors to a max of 79 cols. In the PEP, it recommends using python's implied continuation within brackets, parentheses and braces. …

  4. python - Comments in continuation lines - Stack Overflow

    May 5, 2015 · The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple …

  5. Correct style for line breaks when chaining methods in Python

    Oct 30, 2011 · The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple …

  6. string - Wrap long lines in Python - Stack Overflow

    Within parentheses line continuation is implicit, so a + instead suffices. Note that avoiding Parentheses hinders portability to Python 3.x, imagine a code whose only need for 2to3 are …

  7. Breaking a line of python to multiple lines? - Stack Overflow

    The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping …

  8. Is line continuation with backslash dangerous in Python?

    The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple lines by wrapping …

  9. How can I break an import line in Python? - Stack Overflow

    There are various questions about line continuations in Python, e.g., here, here and here, most pointing at the guidelines: Continuation lines should align wrapped elements either vertically …

  10. How can I break a line of chained methods in Python?

    fwiw, PEP8 reads "The preferred way of wrapping long lines is by using Python's implied line continuation inside parentheses, brackets and braces. Long lines can be broken over multiple …