PEP 8, why no spaces around '=' in keyword argument or a default parameter value?

后端 未结 6 1866
天涯浪人
天涯浪人 2021-01-30 09:54

Why does PEP 8 recommend not having spaces around = in a keyword argument or a default parameter value?

Is this inconsistent with recommending spaces around every other

6条回答
  •  我在风中等你
    2021-01-30 10:22

    IMO leaving out the spaces for args provides cleaner visual grouping of the arg/value pairs; it looks less cluttered.

提交回复
热议问题