pythonic way to map set of strings to integers
<p>Is there shorter way to do this?</p>

<pre><code>g_proptypes = {
    'uint8' : 0
    'sint8' : 1,
    'uint16' : 2,
    'sint16' : 3,
    'uint32' : 4,
... # more strings
}
</code></pre>

<p>The dict is necessary as I'll have the string with me and need to find the corresponding integer. </p>
