>>>>> "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