Is there a more pythonic way to build this dictionary?
<p>What is the "most pythonic" way to build a dictionary where I have the values in a sequence and each key will be a function of its value? I'm currently using the following, but I feel like I'm just missing a cleaner way. NOTE: <code>values</code> is a list that is not related to any dictionary.</p>

<pre><code>for value in values:
    new_dict[key_from_value(value)] = value
</code></pre>
