title: Python 2.7 - How to assign a Class attribute (pointer?) to a variable (Need that to create Oz-esque Dataflow Variables)
body: <p>Is it even possible?</p>
  
  <p>The idea is that i want to have a special variable, that does some processing when assigning or getting its values. I also want it to look like a regular variable, so the dot notation is a problem here.</p>
  
  <p>I know this is not really explicit, but that's what I need in order to try to replicate the <a href="https://en.wikipedia.org/wiki/Oz_(programming_language)#Dataflow_variables_and_declarative_concurrency" rel="nofollow">Oz-esque Dataflow Variables</a>.</p>
  
  <p>If something like these style of dataflow variables was already implemented in a python library, please let me know.</p>
  
  <p>Example:</p>
  
  <pre><code>class Promise(object):
  
      def __init__(self):
          self._value = 'defalt_value'
  
      @property
      def value(self):
          #some processing/logic here
          return self._value
  
      @value.setter
      def value(self, value):
          #some processing/logic here
          self._value = value
  
  my_promise_obj = Promise()
  my_promise = my_promise_obj.value
  
  my_promise = 'Please, set my_promise_obj.value to this string'
  
  print ('Object`s Value:                  ' + my_promise_obj.value)
  print ('My Variable`s value:             ' + my_promise)
  print ('Has I changed the class attr?:   ' + str(my_promise == my_promise_obj))
  </code></pre>