<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>>On 4 Jun 2013 12:28, "Carlos Nepomuceno" <carlosnepomuceno@outlook.com> wrote:<br>[...]<br>>> What's going on? Is there a way to make dict() to resolve the variables?<br>>Well yes.<br>>dict(**{a:0,b:1})<br>>The dict() constructor makes a dictionary from keyword arguments. So you just have to feed it keyword arguments using **.<br>>And if you're in a bad day,<br>>dict(**locals())<br><br>That's exactly the same!<br>>>>dict(**{a:0,b:1})=={a:0,b:1}<br>True<br><br>Are there any benefits from using dict() instead of {}?<br>                                      </div></body>
</html>