[Python-Dev] performance of {} versus dict()
Richard Oudkerk
shibturn at gmail.com
Wed Nov 14 19:01:53 CET 2012
On 14/11/2012 5:02pm, Xavier Morel wrote:
>> In which section? I can't see such a recommendation.
>
> Whitespace in Expressions and Statements > Other Recommendations
>
> 3rd bullet:
>
> —
> Don't use spaces around the = sign when used to indicate a keyword argument or a default parameter value.
Oops, I did not even notice that difference.
I thought Serhiy was talking about indenting the closing ')' and '}'.
--
Richard
More information about the Python-Dev
mailing list