Python datetime timestamp issue
<p>I was trying to create a dictionary with time stamp as the key.
the code is :</p>

<pre><code>    &gt;&gt;&gt; stamp = datetime.datetime(2012, 4, 12, 12, 26, int('13'))
    &gt;&gt;&gt; new_dict = {}
    &gt;&gt;&gt; new_dict[stamp] = 'one'
    &gt;&gt;&gt; print new_dict
    {datetime.datetime(2012, 4, 12, 12, 26, 13): 'one'}
    &gt;&gt;&gt; print stamp
    2012-04-12 12:26:13
</code></pre>

<p>Why does it not take the key as '2012-04-12 12:26:13' and instead taking the expression 'datetime.datetime()' as the key?</p>
