commit | f5b3e36493da275334e29afdbd238863697dca35 | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Sat Feb 11 21:32:43 2006 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Sat Feb 11 21:32:43 2006 +0000 |
tree | 9ddfdb941f79b23a7665f473df37f82f49a80981 | |
parent | cbcdfdc1129cdec27281f62e4494a05405354340 [diff] [blame] |
Renamed _length_cue() to __length_hint__(). See: http://mail.python.org/pipermail/python-dev/2006-February/060524.html
diff --git a/Lib/test/test_iterlen.py b/Lib/test/test_iterlen.py index 1770de2..bcd0a6f 100644 --- a/Lib/test/test_iterlen.py +++ b/Lib/test/test_iterlen.py
@@ -55,7 +55,9 @@ return _len(obj) except TypeError: try: - return obj._length_cue() + # note: this is an internal undocumented API, + # don't rely on it in your own programs + return obj.__length_hint__() except AttributeError: raise TypeError