On Nov 19, 2014, at 12:06 PM, Luciano Ramalho <luci...@ramalho.org> wrote:

> Hello,
> 
> I am writing a book about Python 3 [0] and while researching the
> caveats of subclassing built-in types I discovered the page
> "Differences between PyPy and CPython" [1] and issue #708 "Discrepancy
> in dict subclass __getitem__ calls between CPython 2.7 and PyPy 1.5"
> [2].
> 
> [0] http://shop.oreilly.com/product/0636920032519.do
> [1] 
> http://pypy.readthedocs.org/en/latest/cpython_differences.html#subclasses-of-built-in-types
> [2] 
> https://bitbucket.org/pypy/pypy/issue/708/discrepancy-in-dict-subclass-__getitem__
> 
> However, when testing with pypy3-2.4.0 and pypy-2.4.0 my results were
> the same as with CPython, and not as documented in [1].
> 
> So was issue 708 "fixed" and now PyPy misbehaves in the same way as CPython?

I'm still getting the expected discrepancy between the two: Exception raised on 
both pypy and pypy3, whereas __getitem__ isn’t called on CPython 2.7.5. You 
might want to double check your python binaries?

--
Philip Jenvey

_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to