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/012427.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.includeSkip Montanaro skip@mojam.com (Skip Montanaro)
Thu, 1 Feb 2001 11:33:32 -0600 (CST)
    >> What would break if we decided to simply add __getitem__ (and other
    >> sequence methods) to list object's method table?

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

Could extension writers add those methods to their modules?

I know I'm really getting off-topic here, but the whole visible interface
idea crops up from time-to-time.  I guess I'm just nibbling around the edges
a bit to try and understand the problem better.

Skip




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