A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-March/117607.html below:

[Python-Dev] PEP 8 misnaming

[Python-Dev] PEP 8 misnaming [Python-Dev] PEP 8 misnamingFacundo Batista facundobatista at gmail.com
Wed Mar 14 12:21:28 CET 2012
Hello!

In the "Maximum Line Length" section of PEP 8 it says:

    "The preferred place to break around a binary operator is *after*
the operator, not before it."

And after that is an example (trimmed here):

            if (width == 0 and height == 0 and
                color == 'red' and emphasis == 'strong' or
                highlight > 100):
                raise ValueError("sorry, you lose")

In the example the line is broken after the 'and' or 'or' *keywords*,
not after the '==' *operator* (which is the nice way of doing it).

Maybe the sentence above is misleading?

Thanks!

-- 
.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4