[New-bugs-announce] [issue4649] Fix a+b to a + b

Retro report at bugs.python.org
Sat Dec 13 01:53:28 CET 2008


New submission from Retro <vinetouu at gmail.com>:

http://docs.python.org/3.0/tutorial/controlflow.html#defining-functions


Please visit the above link and see line 6 in the example code.

...         a, b = b, a+b

should be fixed to

...         a, b = b, a + b

because PEP 8 recommends to

- Use spaces around arithmetic operators:
    Yes:
        i = i + 1
    No:
        i=i+1

----------
assignee: georg.brandl
components: Documentation
messages: 77705
nosy: Retro, georg.brandl, loewis, rhettinger
severity: normal
status: open
title: Fix a+b to a + b
versions: Python 2.5, Python 2.5.3, Python 2.6, Python 2.7, Python 3.0, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4649>
_______________________________________


More information about the New-bugs-announce mailing list