[Python-Dev] yeah! for Jeremy and Greg
bwarsaw@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