A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-April/072851.html below:

[Python-Dev] New Super PEP

[Python-Dev] New Super PEP [Python-Dev] New Super PEPJim Jewett jimjjewett at gmail.com
Sun Apr 29 22:31:33 CEST 2007
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4