Merge pull request #168 from lepture/master

Writing Style Guide Line Continuations
This commit is contained in:
Kenneth Reitz
2012-06-08 22:07:44 -07:00
+7 -4
View File
@@ -581,11 +581,14 @@ and square braces.
.. code-block:: python .. code-block:: python
my_very_big_string = ("For a long time I used to go to bed early. Sometimes, " my_very_big_string = (
"when I had put out my candle, my eyes would close so quickly that I had not even " "For a long time I used to go to bed early. Sometimes, "
"time to say “Im going to sleep.”") "when I had put out my candle, my eyes would close so quickly "
"that I had not even time to say “Im going to sleep.”"
)
from some.deep.module.inside.a.module import (a_nice_function, another_nice_function, from some.deep.module.inside.a.module import (a_nice_function,
another_nice_function,
yet_another_nice_functio) yet_another_nice_functio)
However, more often than not having to split long logical line is a sign that However, more often than not having to split long logical line is a sign that