Antonio Cuni pushed to branch branch/hpy-0.0.2 at PyPy / pypy
Commits:
b3432e0b by Antonio Cuni at 2021-04-11T18:23:18+02:00
refactor handles.using: move the main implementation directly into the
HandleManager
--HG--
branch : hpy-0.0.2
- - - - -
37ba065e by Antonio Cuni at 2021-04-11T18:59:50+02:00
WIP: start a refactoring to kill the old "global" API
handles.{new,deref,...},
and replace it with state.handles.{new,deref,...}.
The idea is that W_ExtensionFunction and W_SlotWrapper will need to use a
different HandleManager when we are using the debug mode, so this is a first
step in that direction.
I am going to complete the refactoring in few steps to keep the diff
maneageable. This commit contains:
1. the removal of the old API
2. a blind query/replace to substitute handles.xxx(space, ...) with
state.handles.xxx(...)
The code is still broken though, will be fixed in the next commits
--HG--
branch : hpy-0.0.2
- - - - -
268f4f5b by Antonio Cuni at 2021-04-11T19:27:59+02:00
Complete the refactoring started by 4932f7330a27.
W_ExtensionFunction and W_SlotWrapper save their own version of handles and
ctx on self. This way it should be easy to use dctx and debug_handles to make
them aware of the debug mode.
--HG--
branch : hpy-0.0.2
- - - - -
24 changed files:
- pypy/module/_hpy_universal/buffer.py
- pypy/module/_hpy_universal/handles.py
- pypy/module/_hpy_universal/interp_builder.py
- pypy/module/_hpy_universal/interp_bytes.py
- pypy/module/_hpy_universal/interp_call.py
- pypy/module/_hpy_universal/interp_cpy_compat.py
- pypy/module/_hpy_universal/interp_descr.py
- pypy/module/_hpy_universal/interp_dict.py
- pypy/module/_hpy_universal/interp_err.py
- pypy/module/_hpy_universal/interp_extfunc.py
- pypy/module/_hpy_universal/interp_float.py
- pypy/module/_hpy_universal/interp_hpy.py
- pypy/module/_hpy_universal/interp_list.py
- pypy/module/_hpy_universal/interp_long.py
- pypy/module/_hpy_universal/interp_module.py
- pypy/module/_hpy_universal/interp_number.py
- pypy/module/_hpy_universal/interp_object.py
- pypy/module/_hpy_universal/interp_slot.py
- pypy/module/_hpy_universal/interp_tracker.py
- pypy/module/_hpy_universal/interp_tuple.py
- pypy/module/_hpy_universal/interp_type.py
- pypy/module/_hpy_universal/interp_unicode.py
- pypy/module/_hpy_universal/state.py
- pypy/module/_hpy_universal/test/test_handles.py
View it on GitLab:
https://foss.heptapod.net/pypy/pypy/-/compare/98a1b3f393c4a560b1c1aa69cdd71dfa9ca9cbc4...268f4f5b608bde7109805ba39d99989c76522124
--
View it on Heptapod:
https://foss.heptapod.net/pypy/pypy/-/compare/98a1b3f393c4a560b1c1aa69cdd71dfa9ca9cbc4...268f4f5b608bde7109805ba39d99989c76522124
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