Matti Picus pushed to branch branch/py3.7 at PyPy / pypy


Commits:
c47532d7 by Antonio Cuni at 2020-11-18T13:52:50+01:00
a branch where to introduce @error_value to be able to specify arbitrary return 
values to use in case of exceptions (which is needed by hpy)

--HG--
branch : rpython-error_value

- - - - -
c711d9f8 by Antonio Cuni at 2020-11-18T14:09:50+01:00
add a test which checks that in case of exception the function returns a 
specific error value, and the llinterp machinerty to make it possible. The 
default case passes out of the box of course, while test_custom_error_value is 
WIP

--HG--
branch : rpython-error_value

- - - - -
3fcbb084 by Antonio Cuni at 2020-11-18T15:07:19+01:00
implement @ll_error_value and add a couple of test to ensure that it works 
correctly also in corner cases

--HG--
branch : rpython-error_value

- - - - -
b52af824 by Antonio Cuni at 2020-11-18T21:22:27+01:00
fix the case for exceptions raised by builtin ops

--HG--
branch : rpython-error_value

- - - - -
454729a7 by Antonio Cuni at 2020-11-18T21:25:32+01:00
document the branch

--HG--
branch : rpython-error_value

- - - - -
ef0de482 by Antonio Cuni at 2020-11-20T18:13:38+01:00
rename this test, else it's ungreppable

--HG--
branch : rpython-error_value

- - - - -
1cbed6f5 by Antonio Cuni at 2020-11-21T11:58:27+01:00
WIP: require the user to explicitly define which error_value to use when using 
@llhelper_can_raise, because this is what we need for HPy. However, this 
uncovers a problem, see test_llhelper_can_raise_custome_error_value

--HG--
branch : rpython-error_value

- - - - -
27405133 by Matti Picus at 2020-11-29T21:21:03+02:00
merge win64 into default

- - - - -
1284e761 by Matti Picus at 2020-11-30T09:52:13+02:00
when building cffi extension, copy dll for sqlite3.dll so tests will find it

- - - - -
2a344f51 by Carl Friedrich Bolz-Tereick at 2020-11-30T13:33:38+01:00
make set.update with non-set arguments more jit-friendly by

- unrolling it if the number of args is small (usually 1)
- jitting the adding of new elements

fixes test_unpack_ex on PyPy3.7 as a side-effect

- - - - -
21e613af by Carl Friedrich Bolz-Tereick at 2020-11-30T14:32:54+01:00
fix position of elif clauses in the ast

- - - - -
349cc6b1 by Antonio Cuni at 2020-11-30T18:08:58+00:00
temporary checkin to see whether disabling this breaks any test

--HG--
branch : rpython-error_value

- - - - -
cf646112 by Antonio Cuni at 2020-11-30T21:39:44+01:00
Refactor&simplify the approach:

1. declare that the return value of general RPython function is undefined and
   that you should not rely on it

2. merge @llhelper_can_raise and @ll_error_value into a combined
   @llhelper_error_value: this is the only case which we ultimately care about,
   and it's simpler to test/implement them together than separately

3. introduce a failing test 
(test_enforce_llhelper_error_value_in_case_of_nested_exception)
   which will be fixed in the next commit.

--HG--
branch : rpython-error_value

- - - - -
f6e51b8f by Antonio Cuni at 2020-11-30T21:40:01+01:00
merge heads

--HG--
branch : rpython-error_value

- - - - -
4a88a927 by Antonio Cuni at 2020-11-30T21:44:34+01:00
fix test_enforce_llhelper_error_value_in_case_of_nested_exception by disabling 
an optimization if the graph has @llhelper_error_value

--HG--
branch : rpython-error_value

- - - - -
8bbff486 by Matti Picus at 2020-11-30T23:34:55+02:00
backport changes from py3.7 to rpython

- - - - -
90587a52 by Antonio Cuni at 2020-12-02T11:54:15+01:00
fix whatsnew

--HG--
branch : rpython-error_value

- - - - -
02c2f725 by Antonio Cuni at 2020-12-02T17:22:15+01:00
close merged branch

--HG--
branch : rpython-error_value

- - - - -
6add670f by Antonio Cuni at 2020-12-02T17:25:57+01:00
Merge the rpython-error_value branch.

This branch introduces a new decorator @llhelper_error_value, which
officializes the fact that you can raise RPython exceptions from llhelpers,
and makes it possible to specify what is the C value to return in case of
errors.

It is needed to implement correctly HPy exceptions (see also its sister
branch, hpy-error-value)

- - - - -
cb5a37e6 by Matti Picus at 2020-12-03T23:12:09+02:00
make stack bigger when creating pypy.exe directly from C

- - - - -
7329efa0 by Matti Picus at 2020-12-03T23:13:08+02:00
merge default into branch

--HG--
branch : py3.7

- - - - -


12 changed files:

- pypy/doc/whatsnew-head.rst
- pypy/interpreter/astcompiler/astbuilder.py
- pypy/interpreter/astcompiler/test/test_astbuilder.py
- pypy/objspace/std/setobject.py
- pypy/objspace/std/test/test_setobject.py
- rpython/rlib/objectmodel.py
- rpython/rtyper/llinterp.py
- rpython/rtyper/lltypesystem/ll2ctypes.py
- rpython/rtyper/lltypesystem/test/test_ll2ctypes.py
- rpython/translator/exceptiontransform.py
- rpython/translator/platform/windows.py
- rpython/translator/test/test_exceptiontransform.py


View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/42d01f7306e1249436d0b1e4928b56ad46b92167...7329efa020084c60bbde0d2871a6367d55e06bfd

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/42d01f7306e1249436d0b1e4928b56ad46b92167...7329efa020084c60bbde0d2871a6367d55e06bfd
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