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

Mark Adam dreamingforward at gmail.com
Wed Nov 14 18:57:48 CET 2012


On Wed, Nov 14, 2012 at 11:27 AM, R. David Murray <rdmurray at bitdance.com> wrote:
> Maybe it's not good design, but I'll bet you that if it didn't do that,
> there would be lots of instances of this scattered around various
> codebases:
>
>     def makedict(**kw):
>         return kw

Now that's a good solution and probably solves the OP speed problem.

mark


More information about the Python-Dev mailing list