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/2000-March/002934.html below:

[Python-Dev] yeah! for Jeremy and Greg

[Python-Dev] yeah! for Jeremy and Greg [Python-Dev] yeah! for Jeremy and Gregbwarsaw@cnri.reston.va.us bwarsaw@cnri.reston.va.us
Wed, 29 Mar 2000 00:46:19 -0500 (EST)
>>>>> "KY" == Ka-Ping Yee <ping@lfw.org> writes:

    | It should be noted that "apply" has the same problem, with a
    | different counterintuitive error message:

    >> n = Nums() apply(sum, n)
    |     Traceback (innermost last):
    |       File "<stdin>", line 1, in ?
    |     AttributeError: __len__

The patch I just posted fixes this too.  The error message ain't
great, but at least it's consistent with the direct call.

-Barry

-------------------- snip snip --------------------
Traceback (innermost last):
  File "/tmp/doit.py", line 15, in ?
    print apply(sum, n)
TypeError: len() of unsized object



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