Author: Armin Rigo <[email protected]> Branch: Changeset: r70532:aa2817a1d5db Date: 2014-04-10 11:05 +0200 http://bitbucket.org/pypy/pypy/changeset/aa2817a1d5db/
Log: Tweak: ismethod(method-wrapper) also returns False on CPython diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst --- a/pypy/doc/cpython_differences.rst +++ b/pypy/doc/cpython_differences.rst @@ -320,9 +320,9 @@ bound or unbound method objects. This can occasionally confuse some tools that inspect built-in types. For example, the standard library ``inspect`` module has a function ``ismethod()`` that returns - True on unbound method objects but False on slot wrappers. On PyPy we - can't tell the difference, and so ``ismethod(list.__add__)`` has to - return True. + True on unbound method objects but False on method-wrappers or slot + wrappers. On PyPy we can't tell the difference, and so + ``ismethod([].__add__)`` has to return True. * the ``__dict__`` attribute of new-style classes returns a normal dict, as opposed to a dict proxy like in CPython. Mutating the dict will change the _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
