title: Python class methods changing self
body: <p>This isn't for anything I'm working on yet, it's just some test code as I'm just learning class methods and suck. But say I have the following code</p>
  
  <pre><code>class Test(int):
      def __init__(self,arg):
              self = arg
  
      def thing(self):
              self += 10
  </code></pre>
  
  <p>and going,
  foo=Test(12) sets foo to 12. However I want it, so when I do, foo.thing(), foo increases by 10. So far, going foo.thing() just keeps it at 12. How would I change this code to do that.</p>