News for hackers. Stuff that matters.
Re:New string formatting in Python by makecheck on Monday January 04, 2016 @12:21AM (#10834150)
If you have a dictionary "d" somewhere with the keys that should become keyword arguments then this would work:

    f(**{x:x for x in d})
Re:New string formatting in Python by pramodliv1 on Monday January 04, 2016 @04:17AM (#10834651)
One can also do "{count} {apples}".format(locals()) if we are playing code golf.

Well, star-star locals. I don't know how to write it according to https://news.ycombinator.com/formatdoc