Phillip J. Eby wrote:

> a __call__ method, it will still be
> called, even if you override __getattribute__ to return something else

  >>> dc = DoubleCall()
  >>> dc()
 'called!'
  >>> dc.__call__()
 'attribute'

That is sufficiently fragile that I would be uncomfortable with a
feature that couldn't be supplied otherwise.

-jJ
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to