title: Python3.Descriptor.Class
body: <p>Hello i have simply task, but i am stuck again:</p>
  
  <p>How can i use variable from class into descriptor?</p>
  
  <p>I have <code>commission</code> variable from parent class and i need use it into descriptor while calling <code>set</code>: <code>self.amount = int(amount) * int(commission)</code></p>
  
  <p>How can i do this?</p>
  
  <p>Thank you!</p>
  
  <p>Full code bellow:</p>
  
  <pre><code>class Value():
      def __init__(self):
  
          return
  
      def __get__(self, obj, obj_type):
          return self.amount
  
      def __set__(self, obj, amount, commission):
          self.amount = int(amount) * int(commission)
  
  
  class Account:
  
      def __init__(self, commission):
          self.commission = commission
  
      amount = Value(self.commission)
  
  new_account = Account(0.1)
  new_account.amount = 100
  
  print(new_account.amount)
  </code></pre>