title: Python does not show result of print statements in class
body: <p>This is probably trivial, but I got not resolution when searching for this:</p>
  
  <p>I have the following simple class:</p>
  
  <pre><code>class Celcius:
      def __init__(self, temperature=0):
          self.temperature = temperature
  
      def to_fahrenheit(self):
          return (self.temperature*1.8) + 32
  
      def get_temperature(self):
          print "getting temp"
          return self._temperature
  
      def set_temperature(self, value):
          if value &lt; -273:
              raise ValueError("dayum u trippin' fool")
          print "setting temp"
          self._temperature = value
  
      temperature = property(get_temperature, set_temperature)
  
  c = Celcius()
  </code></pre>
  
  <p>When I run this in Sublime Text 3 (by hitting cmd+B) the console does not print anything. I should see:</p>
  
  <pre><code>setting temp
  </code></pre>
  
  <p>If I add the following to the end of the script:</p>
  
  <pre><code>print "banana"
  print "apple"
  </code></pre>
  
  <p>both lines are printed as expected.</p>
  
  <p>If I run the above python script from the terminal (with python -u, or just python), the result is exactly the same. I assume I am missing something very stupid. Thank you</p>