python dictionary first value
<p>the following code save in a dictionary the object candle by timestamp. i have had a problem with the initialisation and i get the following output</p>

<pre><code>class CandleBuffer:
    def __init__(self,candle=None):
        self.candlebuffer={0: candle}
    def update(self,candle):
        #print candlebuffer
        self.candlebuffer[candle.ref_timestamp]= candle
        #print self.candlebuffer[candle.ref_timestamp].last_price
        #print candle.last_price
        for matel in self.candlebuffer:
            print matel


candleBuffer = CandleBuffer()    
</code></pre>

<p>output</p>

<pre>
0
2013-04-04 15:38:00
</pre>

<p>Would you know i can get rid of that zero "first" value?</p>
