[Python-ideas] Deprecating the old-style sequence protocol
Sven R. Kunze
srkunze at mail.de
Wed Dec 30 13:09:08 EST 2015
On 29.12.2015 03:59, Nick Coghlan wrote:
> On 28 December 2015 at 03:04, Guido van Rossum <guido at python.org> wrote:
>> [ABCs are one honking great idea -- let's do more of those!]
> [collections.abc.Indexable would be a good one.]
Maybe, I still cannot wrap my mind enough around the
types-everywhere-in-python-please world.
But, what's so wrong about checking for __getitem__ or __len__ if necessary?
Best,
Sven
More information about the Python-ideas
mailing list