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/2005-September/056886.html below:

[Python-Dev] bool(container) [was bool(iter([])) changedbetween 2.3 and 2.4]

[Python-Dev] bool(container) [was bool(iter([])) changedbetween 2.3 and 2.4] [Python-Dev] bool(container) [was bool(iter([])) changedbetween 2.3 and 2.4]Raymond Hettinger raymond.hettinger at verizon.net
Fri Sep 30 18:25:01 CEST 2005
[Guido van Rossum]
> __len__ is for sequences and mappings specifically -- everything that
> supports __getitem__ should have __len__ and everything that has
> __len__ should have __getitem__.

That's going a bit far.  Unordered collections (like sets and bags) are
a good counter-example.



Raymond

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