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/2001-February/012441.html below:

[Python-Dev] Re: Sets: elt in dict, lst.include

[Python-Dev] Re: Sets: elt in dict, lst.include [Python-Dev] Re: Sets: elt in dict, lst.includeKa-Ping Yee ping@lfw.org
Thu, 1 Feb 2001 08:58:43 -0800 (PST)
On Wed, 31 Jan 2001, Skip Montanaro wrote:
> What would break if we decided to simply add __getitem__ (and other sequence
> methods) to list object's method table?  Would they foul something up or
> would simply sit around quietly waiting for hasattr to notice them?

That would work for lists, but not for any extension types that
use the sq_* protocol to behave like sequences.

For now, anyway, we're stuck with the two separate protocols
whether we like it or not.


-- ?!ng

Two links diverged in a Web, and i -- i took the one less travelled by.
    -- with apologies to Robert Frost




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