Python class property decorators not working
<p>I'm trying to get Python's decorators to work for me. I'm having trouble understanding why this doesn't work:</p>

<pre><code>class toy(object):

    @property
    def toyname(self):
        return 'lol'

a = toy
print(a.toyname)
</code></pre>

<p>when I run it, I get the following output:</p>

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

<p>The property, it seems, is not being evaluated.</p>

<p>I've seen several answers for Python 2.x mention that I need to subclass <code>object</code> in order for properties to work; however, the answers I've come across so far do not solve my problem.</p>