Class property object converted into string
<p>For a project i need to get information from a website. I wanted to to write a class to deal with that part in isolation.</p>

<p>Right now I'm getting the contents of the HTML through the request model and use this: </p>

<pre><code>def get_line(self):
       for line in self.r.iter_lines():
              self.i = self.i+1
              if self.i == self.zeile:
                    return str(line)
              elif self.i &gt; self.zeile:
                    break
</code></pre>

<p>function to get a specific line of HTML. Now I wanted to save the content of line in a variable, and used this:</p>

<pre><code>temp_string = property(get_line)
</code></pre>

<p>The problem is now that I have a property object not a string, but to cut the content of this HTML down further I want to use the <code>.find</code> method to dynamically get the start and end point where to cut the string.</p>

<p>If I convert the property into a string, though, it changes the HTML (which was perfectly shown before when printing it to console) into this:</p>

<pre><code>&lt;property object at 0x0000020208A5D818&gt;
</code></pre>

<p>What am I doing wrong?</p>