Style question
Peter Hansen
peter at engcorp.com
Wed Jul 7 22:27:06 EDT 2004
Leif K-Brooks wrote:
> The style guide says that a wrapped line should be aligned with where
> the wrapped part started. But what is the most readable thing to do when
> that's impossible? For instance (ignore the wrap caused by my news
> reader), where should the second variable name be wrapped to in this line?
>
> really_really_long_variable_name =
> another_even_longer_variable_name_with_cookies
Ignoring the style guide on this issue, I always indent wrapped
lines one indentation level beyond the previous line.
"It's the only thing that makes sense." (TM)
-Peter
More information about the Python-list
mailing list