getting around immutable string python
<p>Ok, I started coding this:</p>

<pre><code>lastentry = 'first'
campdata = {'a1'=0,
            'b2'=0}

class Someclass:
      def on_window1_destroy(self, widget, data=None):
           print campdata

      def func1(self)
          lastentry = 'b2'

      def func2(self)
          lastentry = 'a1'

      def func2(self)
          campdata[lastcall] +=1
</code></pre>

<p>But then I found out that python strings (and integers) were immutable... </p>

<p>So how do I get around ths?</p>
