Carl Friedrich Bolz-Tereick pushed to branch branch/default at PyPy / pypy

Commits:
96f76bfa by Carl Friedrich Bolz-Tereick at 2020-02-29T09:17:03+01:00
remove very convoluted _build_consts_array function

- - - - -
c32afba7 by Carl Friedrich Bolz-Tereick at 2020-02-29T23:07:21+01:00
fix bug in PyCode.__eq__: the compiler contains careful logic to make sure that
it doesn't unify things like 0.0 and -0.0 (they are equal, but the sign 
still
shouldn't be dropped). PyCode.__eq__ needs to use the same logic, move it to
PyCode.const_comparison_key and then use that from the bytecode compiler.

Also make explicit the decition that we never unify equal code objects in the
same surrounding code's co_consts. CPython does that but it's extremely 
limited
(only identical lambdas on the same line).

- - - - -


4 changed files:

- pypy/interpreter/astcompiler/assemble.py
- pypy/interpreter/pycode.py
- pypy/interpreter/test/test_code.py
- pypy/interpreter/test/test_compiler.py


View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/compare/3db6b2c0bda43fbee10f2a469e1858f9ca47085b...c32afba764837d7b937596dda66483a298c1bf6a

---
View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/compare/3db6b2c0bda43fbee10f2a469e1858f9ca47085b...c32afba764837d7b937596dda66483a298c1bf6a
You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to