How to call the super implementation of a property?

Aahz aahz at pythoncraft.com
Sun Jan 26 01:21:19 CET 2003


In article <2osq2vo3qqgg1nrdg3ude0oms62et81uks at 4ax.com>,
Gonçalo Rodrigues  <op73418 at mail.telepac.pt> wrote:
>
>How do I call the super implementation of the n property using super?
>The obvious (to me) does not work:
>
>>>> print super(test2, b).n
>Traceback (most recent call last):
>  File "<interactive input>", line 1, in ?
>AttributeError: 'super' object has no attribute 'n'

That's a good question.  You might want to post to python-dev to see if
there are opinions before filing a bug report on SF.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Argue for your limitations, and sure enough they're yours."  --Richard Bach




More information about the Python-list mailing list