Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r91200:73b4ce214eb8 Date: 2017-05-08 12:16 +0200 http://bitbucket.org/pypy/pypy/changeset/73b4ce214eb8/
Log: Add another note 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 @@ -505,7 +505,8 @@ even for ``dict()`` and ``dict.update()``. CPython 2.7 allows non-string keys in these two cases (and only there, as far as we know). E.g. this code produces a ``TypeError``, on CPython 3.x as well as on any PyPy: - ``dict(**{1: 2})``. + ``dict(**{1: 2})``. (Note that ``dict(**d1)`` is equivalent to + ``dict(d1)``.) * PyPy3: ``__class__`` attribute assignment between heaptypes and non heaptypes. CPython allows that for module subtypes, but not for e.g. ``int`` _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit