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/2008-March/077391.html below:

[Python-Dev] _abcoll Callable bug

[Python-Dev] _abcoll Callable bug [Python-Dev] _abcoll Callable bugGuido van Rossum guido at python.org
Mon Mar 3 23:46:25 CET 2008
On Mon, Mar 3, 2008 at 1:24 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> The Callable abc has a __contains__ but no __call__ method.
>  I'd fix this, but am unsure which args it should get.

Oops, bad copy/paste. :-(

def __call__(self, *args, **kwds):
  return None

I don't expect it'll have many users. :-)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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