title: Can python objects have nested properties?
body: <p>I have an object defined as follows</p>
  
  <pre><code>class a():
      @property
      def prop(self):
          print("hello from object.prop")
          @property
          def prop1(self):
              print("Hello from object.prop.prop")
  </code></pre>
  
  <p>When I call</p>
  
  <pre><code>&gt;&gt;&gt; obj = a()
  &gt;&gt;&gt; obj.prop
  hello from object.prop
  &gt;&gt;&gt; obj.prop.prop
  </code></pre>
  
  <p>I get the following traceback error</p>
  
  <pre><code>Traceback (most recent call last):
    File "object_property.py", line 13, in &lt;module&gt;
      a.prop.prop1
  AttributeError: 'NoneType' object has no attribute 'prop1'
  </code></pre>
  
  <p>What I am trying to figure out is if I can define nested properties for objects?</p>