[Python-Dev] Suggested addition to PEP 8 for context managers

Guido van Rossum guido at python.org
Wed Apr 18 16:47:13 CEST 2012


On Wed, Apr 18, 2012 at 1:29 AM, Floris Bruynooghe <flub at devork.be> wrote:
> And since this is OT by now, one of the other pep8 annoyances I
> have[0] is the blanket whitespace around arithmetic operators,
> including **.  To me the first just looks ugly:
>
>>>> 1024 ** 2
>>>> 1024**2
>
> Certainly when the expressions are larger.

I don't believe PEP 8 requires whitespace around all binary operators.
Where do you read that?

-- 
--Guido van Rossum (python.org/~guido)


More information about the Python-Dev mailing list