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-July/015814.html below:

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Include rangeobject.h,2.16,2.17

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Include rangeobject.h,2.16,2.17Fredrik Lundh fredrik@pythonware.com
Mon, 9 Jul 2001 10:11:02 +0200
barry wrote:
> As you say, this has always been flaky, inconsistent, underspecified,
> and unpredictable

>>> class C: pass
...
>>> c = C()
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'
>>> len(c)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'C' instance has no attribute '__len__'

looks pretty predictable to me...

</F>




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