Antonio Cuni pushed to branch branch/py3.6 at PyPy / pypy
Commits: 290fef6b by Antonio Cuni at 2020-09-22T09:30:26+02:00 ./update_vedored to hpy git revision 7cf3e2f --HG-- branch : hpy - - - - - 669b93dc by Antonio Cuni at 2020-09-22T10:35:52+02:00 remove duplicate entry and ignore the content of the bin/ directory (which is useful if you ./pypy -m pip install stuff inside your working copy --HG-- branch : hpy - - - - - c6fe3e35 by Antonio Cuni at 2020-09-22T11:06:04+02:00 adapt our support.py to the upstream changes. test_basic.py passes again --HG-- branch : hpy - - - - - 419aee31 by Antonio Cuni at 2020-09-22T11:49:22+02:00 update the HPyContext struct --HG-- branch : hpy - - - - - 6c30bcd6 by Antonio Cuni at 2020-09-22T11:48:51+02:00 Suppress the cpyext warnings like: missing slot '__setattr__'/'tp_setattr', discovered on 'object' ... They have been around forever and nobody looks at them anyway --HG-- branch : hpy - - - - - e4728302 by Antonio Cuni at 2020-09-22T12:01:01+02:00 comment out these SLOTS: they are not included yet in autogen_hpyslot.h, they will be reenabled later when there is a test for them --HG-- branch : hpy - - - - - 983cf46c by Antonio Cuni at 2020-09-22T12:14:14+02:00 rename this (no clue why it was called differently) --HG-- branch : hpy - - - - - e210c5b9 by Antonio Cuni at 2020-09-22T18:55:56+02:00 tp_new's calling convention is special, because you need to take the first __args__.arguments_w and pass it as "self" manually. This logic in CPython is done by tp_new_wrapper, and here we do it by subclassing W_ExtensionFunction --HG-- branch : hpy - - - - - 40bf3e9e by Ronan Lamy at 2020-09-30T17:41:38+01:00 Comment out more missing slots --HG-- branch : hpy - - - - - 58354c76 by Ronan Lamy at 2020-09-30T20:17:29+01:00 implement HPyTuple_FromArray --HG-- branch : hpy - - - - - 4c6bdc31 by Antonio Cuni at 2020-10-01T11:04:51+02:00 test_nb_ops_binary passes --HG-- branch : hpy - - - - - beddbe69 by Antonio Cuni at 2020-10-02T18:08:36+02:00 make it possible to call handles.using() with multiple objects, and use it to simplify a piece of code --HG-- branch : hpy - - - - - 54c265b9 by Antonio Cuni at 2020-10-03T00:22:08+02:00 Refactor interp_slots.py The autogen approach works for simple cases, but it quickly shows its limit for more complex ones. The problem is that even in CPython the correspondance between the various *func typedef and wrap_* functions is strong but not complete. So, it seems better and easier to follow CPython as close as possible: instead of autogenerating the W_SlotWrapper from the HPyFunc_* typedef, we write them manually, following the very same name convention as CPython. In this commit, kill autogen_interp_slots and move/rename the exiting wrappers inside interp_slot.py --HG-- branch : hpy - - - - - 2e44346b by Antonio Cuni at 2020-10-03T00:28:33+02:00 rename this to follow more closely CPython's naming convention --HG-- branch : hpy - - - - - 2d3c084c by Antonio Cuni at 2020-10-03T00:33:42+02:00 kill autogen_interp_slots_py: at the moment we don't need our own autogen script, but we keep it as an example in case we will need it later --HG-- branch : hpy - - - - - 0083f318 by Antonio Cuni at 2020-10-03T00:46:26+02:00 implement nb_bool; test_nb_ops_type_conversion passes --HG-- branch : hpy - - - - - 8eaf2342 by Antonio Cuni at 2020-10-03T03:07:25+02:00 implement W_wrap_ternaryfunc: test_nb_ops_power passes --HG-- branch : hpy - - - - - 287a620f by Antonio Cuni at 2020-10-03T15:41:24+01:00 fix translation --HG-- branch : hpy - - - - - 37062a41 by Antonio Cuni at 2020-10-03T16:47:03+02:00 fix test_extra, the API changed --HG-- branch : hpy - - - - - de1d4470 by Antonio Cuni at 2020-10-03T17:00:27+02:00 implement HPyTupleBuilder --HG-- branch : hpy - - - - - c6364c7d by Antonio Cuni at 2020-10-04T11:07:46+01:00 fix translation, as explained by the comment --HG-- branch : hpy - - - - - 007d9e5c by Antonio Cuni at 2020-10-04T15:24:36+02:00 improve the fake objspace so that it fails if you pass a resizable list to newtuple, and to catch the problem which was fixed by 0726e91a1ce1 --HG-- branch : hpy - - - - - f4fe012b by Antonio Cuni at 2020-10-04T15:46:28+02:00 greatly simplify inter_builder.py by unsharing the code between ListBuilder and TupleBuilder; this introduces a bit of code duplication, but removes all the unnecessary code and rpython hacks which were needed to implement the non-shared parts of the code --HG-- branch : hpy - - - - - b814aa95 by Antonio Cuni at 2020-10-04T17:38:57+02:00 ./update_vendored.sh to git rev 46f151a --HG-- branch : hpy-46f151a - - - - - d6738f87 by Antonio Cuni at 2020-10-04T17:58:34+02:00 implement hpy.universal.get_version(), using the data which is found inside _vendored/hpy/devel/version.py (which is itself generated by setuptools-scm) --HG-- branch : hpy-46f151a - - - - - e2da95fa by Antonio Cuni at 2020-10-04T18:30:07+02:00 add support for HPyType_SpecParam_Base --HG-- branch : hpy-46f151a - - - - - 7b5703f5 by Antonio Cuni at 2020-10-04T18:39:06+02:00 add support for HPyType_SpecParam_BasesTuple --HG-- branch : hpy-46f151a - - - - - cbf4cc42 by Antonio Cuni at 2020-10-04T18:59:41+02:00 fix the case for params==NULL --HG-- branch : hpy-46f151a - - - - - 49858015 by Antonio Cuni at 2020-10-04T19:14:38+02:00 fix for test_ztranslation --HG-- branch : hpy-46f151a - - - - - cc2d9575 by Antonio Cuni at 2020-10-05T10:37:12+02:00 translation fix: we need to use 'struct _HPy_s' inside the declaration of HPyType_SpecParam, else it conflicts with the corresponding declaration inside hpy.h --HG-- branch : hpy-46f151a - - - - - 76d9a0a5 by Antonio Cuni at 2020-10-05T11:11:25+02:00 close merged branch --HG-- branch : hpy-46f151a - - - - - 49109894 by Antonio Cuni at 2020-10-05T11:12:16+02:00 hg merge hpy-46f151a. This updates _hpy_universal to hpy rev 46f151a --HG-- branch : hpy - - - - - d94560f9 by Antonio Cuni at 2020-10-05T13:28:21+01:00 fix translation --HG-- branch : hpy - - - - - 4c55e9e2 by Antonio Cuni at 2020-10-05T14:28:11+02:00 use a different way to get the version without importing _vendored.hpy.devel: this makes it possible to translate pypy even if pathlib is not installed (because it's imported by hpy/devel/__init__.py) --HG-- branch : hpy - - - - - 1fcf558b by Antonio Cuni at 2020-10-05T14:22:52+00:00 Merge branch 'branch/hpy' into 'branch/py3.6' Update to HPy 46f151a See merge request pypy/pypy!767 --HG-- branch : py3.6 - - - - - 30 changed files: - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/typeslots.h → pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/autogen_hpyslot.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/autogen_impl.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/hpydef.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/hpyfunc.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/hpytype.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/macros.h - + pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/runtime/ctx_tuple.h - + pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/runtime/ctx_tuplebuilder.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/runtime/ctx_type.h - + pypy/module/_hpy_universal/_vendored/hpy/devel/include/common/version.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/cpython/hpy.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/universal/autogen_ctx.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/universal/autogen_trampolines.h - pypy/module/_hpy_universal/_vendored/hpy/devel/include/universal/hpy.h - pypy/module/_hpy_universal/_vendored/hpy/devel/src/runtime/argparse.c - pypy/module/_hpy_universal/_vendored/hpy/devel/src/runtime/ctx_listbuilder.c - + pypy/module/_hpy_universal/_vendored/hpy/devel/src/runtime/ctx_tuple.c - + pypy/module/_hpy_universal/_vendored/hpy/devel/src/runtime/ctx_tuplebuilder.c - pypy/module/_hpy_universal/_vendored/hpy/devel/src/runtime/ctx_type.c - + pypy/module/_hpy_universal/_vendored/hpy/devel/version.py - − pypy/module/_hpy_universal/autogen_interp_slots.py - pypy/module/_hpy_universal/handles.py - pypy/module/_hpy_universal/interp_builder.py - pypy/module/_hpy_universal/interp_descr.py - pypy/module/_hpy_universal/interp_hpy.py - pypy/module/_hpy_universal/interp_slot.py - + pypy/module/_hpy_universal/interp_tuple.py - pypy/module/_hpy_universal/interp_type.py - pypy/module/_hpy_universal/llapi.py - pypy/module/_hpy_universal/moduledef.py View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/5ee2925459372a8af805e952f433acd75e426325...1fcf558b1ef12bb0cb63f250ce7f6b329451fbd9 -- View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/5ee2925459372a8af805e952f433acd75e426325...1fcf558b1ef12bb0cb63f250ce7f6b329451fbd9 You're receiving this email because of your account on foss.heptapod.net.
_______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit