Different values for property vs attribute???
Russell Blau
russblau at hotmail.com
Tue May 4 15:59:34 EDT 2004
"j_mckitrick" <j_mckitrick at bigfoot.com> wrote in message
news:ec6dce8b.0405041123.19c4c6c3 at posting.google.com...
> This has really got me confused:
>
> class Klass:
> def __init__(self):
...
> What am I missing? Isn't the property shortcut just an accessor to
> the same member variable???
As someone else pointed out in another thread within the last 24 hours,
properties are only supported for new-style classes. Try changing the first
line to
class Klass(object):
and see if it works.
--
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.
More information about the Python-list
mailing list