[Python-Dev] performance of {} versus dict()

Richard Oudkerk shibturn at gmail.com
Wed Nov 14 17:42:39 CET 2012


On 14/11/2012 4:23pm, Serhiy Storchaka wrote:
> PEP 8 recommends:
>
> a_dict = dict(
>      x=1,
>      y=2,
>      z=3,
>      ...
> )
>
> and
>
> a_dict = {
>      'x': 1,
>      'y': 2,
>      'z': 3,
>      ...
> }

In which section?  I can't see such a recommendation.

--
Richard



More information about the Python-Dev mailing list