[pypy-svn] pypy default: __length_hint__ is an undocumented implementation detail of cpython.

arigo commits-noreply at bitbucket.org
Fri Jan 21 16:32:03 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41148:5b2ecf6caf90
Date: 2011-01-21 16:31 +0100
http://bitbucket.org/pypy/pypy/changeset/5b2ecf6caf90/

Log:	__length_hint__ is an undocumented implementation detail of cpython.

diff --git a/lib-python/modified-2.7.0/test/test_descr.py b/lib-python/modified-2.7.0/test/test_descr.py
--- a/lib-python/modified-2.7.0/test/test_descr.py
+++ b/lib-python/modified-2.7.0/test/test_descr.py
@@ -1740,6 +1740,10 @@
                 raise MyException
 
         for name, runner, meth_impl, ok, env in specials:
+            if name == '__length_hint__':
+                if not check_impl_detail():
+                    continue
+
             class X(Checker):
                 pass
             for attr, obj in env.iteritems():


More information about the Pypy-commit mailing list