Nadeem Vawda <[email protected]> added the comment:
>>
>> - install.install_dists = lambda x, y=None: None
>> + install.install_dists = lambda x, y = None: None
>> PEP 8: Never put spaces in a function (or lambda) signature.
>
> I cannot find that exactly in pep8.
>From the section "Whitespace in Expressions and Statements":
- Don't use spaces around the '=' sign when used to indicate a
keyword argument or a default parameter value.
Yes:
def complex(real, imag=0.0):
return magic(r=real, i=imag)
No:
def complex(real, imag = 0.0):
return magic(r = real, i = imag)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14183>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com