[pypy-commit] [Git][pypy/pypy][branch/hpy-0.0.3] 49 commits: Use the cpyext error indicator to implement HPy exceptions (WIP)

Ronan Lamy (@rlamy) foss at heptapod.net
Thu Sep 2 12:36:09 EDT 2021



Ronan Lamy pushed to branch branch/hpy-0.0.3 at PyPy / pypy


Commits:
90370b5d by Ronan Lamy at 2021-06-28T17:58:31+01:00
Use the cpyext error indicator to implement HPy exceptions (WIP)

--HG--
branch : hpy-refactor-exceptions

- - - - -
10011611 by Ronan Lamy at 2021-06-28T18:02:48+01:00
Check exceptions in init_hpy_module

--HG--
branch : hpy-refactor-exceptions

- - - - -
1eaaf5e8 by Ronan Lamy at 2021-06-28T19:15:20+01:00
Fix test failures (more slots need fixing)

--HG--
branch : hpy-refactor-exceptions

- - - - -
63a5e6e8 by Ronan Lamy at 2021-06-29T17:30:12+01:00
Fix exception handling in slot wrappers

--HG--
branch : hpy-refactor-exceptions

- - - - -
cfa903c0 by Ronan Lamy at 2021-06-29T17:57:37+01:00
Kill handlemanager.Stack: we can just use a list again

--HG--
branch : hpy-refactor-exceptions

- - - - -
f7abfba2 by Ronan Lamy at 2021-06-30T15:58:33+01:00
performance: in functions, raise exception only if the return value is null

--HG--
branch : hpy-refactor-exceptions

- - - - -
a3c62ef5 by Matti Picus at 2021-08-02T22:58:20+03:00
update contributors

- - - - -
af1cdaba by Ronan Lamy at 2021-08-02T21:15:00+01:00
merge heads

- - - - -
adfd09d4 by Matti Picus at 2021-08-05T23:30:13+03:00
add _winapi.GetFileType and FILE_TYPE_* values (issue 3531)

--HG--
branch : py3.7

- - - - -
bf16b06b by Matti Picus at 2021-08-06T00:32:24+03:00
add 32-bit version of _pypy_winbase_cffi.py

--HG--
branch : py3.7

- - - - -
e9691d71 by Matti Picus at 2021-08-06T14:32:31+03:00
make str(sys.version_info) have the stuctseq name (like CPython)

- - - - -
2a71528f by Matti Picus at 2021-08-06T14:54:14+03:00
merge default into py3.7

--HG--
branch : py3.7

- - - - -
210f81a5 by Matti Picus at 2021-08-06T14:50:10+03:00
fix merge, switch sys.implementation.version to pypy_version_info (issue 3129)

--HG--
branch : py3.7

- - - - -
b4c6014d by Matti Picus at 2021-08-06T15:44:53+03:00
fix signature of PyErr_SetFromWindowsErr

--HG--
branch : py3.7

- - - - -
ae5a2670 by Matti Picus at 2021-08-09T15:11:51+03:00
clarify python2/python3 resource tracking.

- - - - -
e5d69118 by Carl Friedrich Bolz-Tereick at 2021-08-09T21:42:43+02:00
fix another source of position bugs in the astcompiler (like eg 3405c95f9e61)
stemming from the fact that SyntaxErrors use 1-based column offsets, this time
in the codegen

- - - - -
f61d54da by Carl Friedrich Bolz-Tereick at 2021-08-09T21:43:09+02:00
erge heads

- - - - -
e33ec63d by Matti Picus at 2021-08-10T08:11:47+03:00
expose functions implemented directly in C (issue 3532)

--HG--
branch : py3.7

- - - - -
c01c79c3 by Matti Picus at 2021-08-11T06:31:01+03:00
sys.implementation.hexversion is from pypy_version_info not version_info

--HG--
branch : py3.7

- - - - -
b031a345 by Matti Picus at 2021-08-11T18:39:10+03:00
add PyContextVar_New, PyContextVar_Get, PyContextVar_Set (new for python 3.7)

--HG--
branch : py3.7

- - - - -
eb0d1ab5 by Carl Friedrich Bolz-Tereick at 2021-08-12T12:12:42+02:00
add strsignal

- - - - -
40b77ad3 by Carl Friedrich Bolz-Tereick at 2021-08-12T12:14:24+02:00
merge default

--HG--
branch : py3.7

- - - - -
efda8ad9 by Carl Friedrich Bolz-Tereick at 2021-08-12T12:15:06+02:00
merge heads

--HG--
branch : py3.7

- - - - -
9d5af915 by Matti Picus at 2021-08-17T07:50:58+03:00
fix translation

--HG--
branch : py3.7

- - - - -
170506b2 by Matti Picus at 2021-08-17T09:29:45+03:00
fix unused-variable errors in cpyext tests

--HG--
branch : py3.7

- - - - -
92b3120d by Matti Picus at 2021-08-20T17:01:33+03:00
add frame.f_back, assuming the user is aware of the dangers of examinig the stack

--HG--
branch : py3.7

- - - - -
f8d0f6ad by Matti Picus at 2021-08-23T10:42:20+03:00
typo in import.h

--HG--
branch : py3.7

- - - - -
b542d233 by Matti Picus at 2021-08-24T21:12:23+03:00
assignment to a structseq should be an AttributeError

--HG--
branch : py3.7

- - - - -
c3ec31c4 by Matti Picus at 2021-08-24T21:51:00+03:00
add f_sid to statvfs

- - - - -
02ce8b08 by Matti Picus at 2021-08-24T23:15:10+03:00
merge default into py3.7

--HG--
branch : py3.7

- - - - -
23fd8083 by Matti Picus at 2021-08-25T07:08:00+03:00
remove f_fsid for python2

- - - - -
d70f5697 by Matti Picus at 2021-08-25T07:08:38+03:00
merge default into py3.7, discarding changes

--HG--
branch : py3.7

- - - - -
72fe4ff3 by Matti Picus at 2021-08-25T07:11:34+03:00
adjust exception in test

--HG--
branch : py3.7

- - - - -
502eb6c7 by Ronan Lamy at 2021-08-27T10:43:55+02:00
hg merge py3.7

--HG--
branch : hpy-refactor-exceptions

- - - - -
9b12b1c2 by Armin Rigo at 2021-08-27T18:31:40+02:00
(antocuni freezing, ronan, arigo)

Fix for a corner case missing an optimization: interpindirect2app()
on a function with signature 'self, space, __args__' was missing
the optimization for that signature, which works with interp2app().
It's used in _hpy_universal.

- - - - -
44b64678 by Armin Rigo at 2021-08-27T18:33:35+02:00
hg merge default

--HG--
branch : py3.7

- - - - -
0ffd6f1c by Armin Rigo at 2021-08-27T18:34:01+02:00
hg merge py3.7

--HG--
branch : hpy-refactor-exceptions

- - - - -
7d367854 by Armin Rigo at 2021-08-27T17:45:50+01:00
(ronan, antocuni frozen, arigo)

Use interpindirect2app here too.  With this exact signature,
interp2app() is optimized but only if you use a method and
not a function (and now interpindirect2app() uses a method).

--HG--
branch : hpy-refactor-exceptions

- - - - -
816c5d56 by Matti Picus at 2021-08-28T21:26:13+03:00
tweak onboarding to mention using python2 and pypy3-c to run tests

- - - - -
9ba625aa by Matti Picus at 2021-08-28T21:46:02+03:00
typo

- - - - -
3feaa724 by Matti Picus at 2021-08-30T00:03:28+03:00
start a release note

- - - - -
d8d27a06 by "Miss Islington (bot)" at 2021-08-31T08:26:34+03:00
bpo-43124: Fix smtplib multiple CRLF injection (GH-25987) (GH-28037)
Co-authored-by: Miguel Brito <5544985+miguendes at users.noreply.github.com>

Co-authored-by: Łukasz Langa <lukasz at langa.pl>
(cherry picked from commit 0897253f426068ea6a6fbe0ada01689af9ef1019)

--HG--
branch : py3.7

- - - - -
2fa75211 by "Miss Islington (bot)" at 2021-08-31T08:27:45+03:00
bpo-42278: Use tempfile.TemporaryDirectory rather than tempfile.mktemp in pydoc (GH-23200) (GH-28026)
Co-authored-by: Łukasz Langa <lukasz at langa.pl>
(cherry picked from commit c9227df5a9d8e958a2324cf0deba8524d1ded26a)

Co-authored-by: E-Paine <63801254+E-Paine at users.noreply.github.com>

--HG--
branch : py3.7

- - - - -
87e34312 by Carl Friedrich Bolz-Tereick at 2021-09-01T14:26:49+02:00
typos, try to explain the new 3.8 JIT thing

- - - - -
1d1ae287 by Matti Picus at 2021-09-02T10:17:37+03:00
update version numbers in default

- - - - -
5e0575ec by Matti Picus at 2021-09-02T10:27:47+03:00
update contributors

- - - - -
1b13cd60 by Matti Picus at 2021-09-02T10:29:12+03:00
merge default into py3.7

--HG--
branch : py3.7

- - - - -
0409ad57 by Ronan Lamy at 2021-09-02T14:40:23+00:00
Merge branch 'branch/hpy-refactor-exceptions' into 'branch/py3.7'

WIP? Use the cpyext error indicator to implement HPy exceptions

See merge request pypy/pypy!828

--HG--
branch : py3.7

- - - - -
eed30f53 by Ronan Lamy at 2021-09-02T16:59:50+01:00
hg merge py3.7

--HG--
branch : hpy-0.0.3

- - - - -


30 changed files:

- LICENSE
- lib-python/3/pydoc.py
- lib-python/3/smtplib.py
- lib-python/3/test/test_smtplib.py
- lib_pypy/_pypy_winbase_build.py
- lib_pypy/_pypy_winbase_cffi.py
- lib_pypy/_pypy_winbase_cffi64.py
- lib_pypy/_structseq.py
- lib_pypy/_winapi.py
- pypy/doc/conf.py
- pypy/doc/contributing.rst
- pypy/doc/contributor.rst
- pypy/doc/cpython_differences.rst
- pypy/doc/index-of-release-notes.rst
- + pypy/doc/release-v7.3.6.rst
- pypy/interpreter/astcompiler/codegen.py
- pypy/interpreter/gateway.py
- pypy/interpreter/test/test_compiler.py
- pypy/interpreter/test/test_gateway.py
- pypy/interpreter/test/test_syntax.py
- pypy/module/_hpy_universal/apiset.py
- pypy/module/_hpy_universal/bridge.py
- pypy/module/_hpy_universal/handlemanager.py
- pypy/module/_hpy_universal/interp_err.py
- pypy/module/_hpy_universal/interp_extfunc.py
- pypy/module/_hpy_universal/interp_hpy.py
- pypy/module/_hpy_universal/interp_slot.py
- pypy/module/_hpy_universal/llapi.py
- pypy/module/_hpy_universal/src/hpyerr.c
- pypy/module/_hpy_universal/src/hpyerr.h


View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/11ed61a116888b65bd41905434001c75d611cb7f...eed30f5374249b5652278e3b3b83de694b693712

-- 
View it on Heptapod: https://foss.heptapod.net/pypy/pypy/-/compare/11ed61a116888b65bd41905434001c75d611cb7f...eed30f5374249b5652278e3b3b83de694b693712
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/pypy-commit/attachments/20210902/3882f05f/attachment-0001.html>


More information about the pypy-commit mailing list