[pypy-commit] pypy py3.5: hg merge default

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r92691:be539692837f Date: 2017-10-10 01:30 +0200 http://bitbucket.org/pypy/pypy/changeset/be539692837f/ Log:hg merge default diff --git a/pypy/module/cpyext/slotdefs.py b/pypy/module/cpyext/slotdefs.py ---

[pypy-commit] pypy py3.5: Test behaviour of lone surrogates with non-default error handlers

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r92692:86bb8174a0e9 Date: 2017-10-10 01:53 +0200 http://bitbucket.org/pypy/pypy/changeset/86bb8174a0e9/ Log:Test behaviour of lone surrogates with non-default error handlers diff --git

[pypy-commit] pypy default: Fix handling of high surrogates in unicode_encode_utf_32

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: Changeset: r92690:0aec7a27d5ba Date: 2017-10-10 01:18 +0200 http://bitbucket.org/pypy/pypy/changeset/0aec7a27d5ba/ Log:Fix handling of high surrogates in unicode_encode_utf_32 diff --git a/rpython/rlib/runicode.py b/rpython/rlib/runicode.py

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo): implement PyInt_FromLong in C and use freelists for allocation, copying the code from CPython; plus, some smaller changes here and there w

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92686:e5c7b7f85187 Date: 2017-10-09 18:26 +0200 http://bitbucket.org/pypy/pypy/changeset/e5c7b7f85187/ Log:(antocuni, arigo): implement PyInt_FromLong in C and use freelists for allocation, copying

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo): we concluded that we cannot kill these: they are needed e.g. by as_pyobj and int subclasses

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92689:3f54b35142d4 Date: 2017-10-09 18:42 +0200 http://bitbucket.org/pypy/pypy/changeset/3f54b35142d4/ Log:(antocuni, arigo): we concluded that we cannot kill these: they are needed e.g. by as_pyobj

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo): hoorray: finally add an optimized special case to make_ref for integers, so that they are allocated from the free list

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92687:79a097e55085 Date: 2017-10-09 18:35 +0200 http://bitbucket.org/pypy/pypy/changeset/79a097e55085/ Log:(antocuni, arigo): hoorray: finally add an optimized special case to make_ref for integers,

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo): write a passing test

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92688:abffbc3948ea Date: 2017-10-09 18:40 +0200 http://bitbucket.org/pypy/pypy/changeset/abffbc3948ea/ Log:(antocuni, arigo): write a passing test diff --git a/pypy/module/cpyext/test/test_intobject.py

[pypy-commit] pypy default: Fix for leaks in case of NotImplemented return values

2017-10-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r92683:4e7960df8e0c Date: 2017-10-09 16:42 +0200 http://bitbucket.org/pypy/pypy/changeset/4e7960df8e0c/ Log:Fix for leaks in case of NotImplemented return values diff --git a/pypy/module/cpyext/slotdefs.py

[pypy-commit] pypy default: merge heads

2017-10-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r92685:386fcca6c58f Date: 2017-10-09 16:54 +0200 http://bitbucket.org/pypy/pypy/changeset/386fcca6c58f/ Log:merge heads diff --git a/pypy/module/cpyext/dictobject.py b/pypy/module/cpyext/dictobject.py ---

[pypy-commit] pypy cpyext-avoid-roundtrip: Fix for leaks in case of NotImplemented return values

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92682:9bfec319cb44 Date: 2017-10-09 16:42 +0200 http://bitbucket.org/pypy/pypy/changeset/9bfec319cb44/ Log:Fix for leaks in case of NotImplemented return values diff --git a/pypy/module/cpyext/slotdefs.py

[pypy-commit] pypy cpyext-avoid-roundtrip: merge heads

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92684:77686cdbb6fe Date: 2017-10-09 16:54 +0200 http://bitbucket.org/pypy/pypy/changeset/77686cdbb6fe/ Log:merge heads diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py ---

[pypy-commit] pypy py3.5: hg merge default

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r92680:ebfa68d4 Date: 2017-10-09 16:11 +0200 http://bitbucket.org/pypy/pypy/changeset/ebfa68d4/ Log:hg merge default diff --git a/lib_pypy/cffi.egg-info/PKG-INFO b/lib_pypy/cffi.egg-info/PKG-INFO ---

[pypy-commit] pypy py3.5: Fix performance and correctness of PyDict_Next by storing a list of keys instead of a view

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r92681:61c11feab4e6 Date: 2017-10-09 16:40 +0200 http://bitbucket.org/pypy/pypy/changeset/61c11feab4e6/ Log:Fix performance and correctness of PyDict_Next by storing a list of keys instead of a view diff --git

[pypy-commit] pypy cpyext-avoid-roundtrip: Fix for leaks in case of NotImplemented return values

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92678:55577c485f1b Date: 2017-10-09 16:27 +0200 http://bitbucket.org/pypy/pypy/changeset/55577c485f1b/ Log:Fix for leaks in case of NotImplemented return values diff --git a/pypy/module/cpyext/slotdefs.py

[pypy-commit] pypy cpyext-avoid-roundtrip: merge heads

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92679:2290915cd14c Date: 2017-10-09 16:29 +0200 http://bitbucket.org/pypy/pypy/changeset/2290915cd14c/ Log:merge heads diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py ---

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo)

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92677:8bbae2a41f6b Date: 2017-10-09 16:26 +0200 http://bitbucket.org/pypy/pypy/changeset/8bbae2a41f6b/ Log:(antocuni, arigo) Small refactoring to make it possible to return something different

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo): use make_ref+decref instead of as_pyobj to convert arguments inside generic_cpy_call: the plan is to add a fast-path to make_ref to alloca

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92676:c84be963f330 Date: 2017-10-09 16:08 +0200 http://bitbucket.org/pypy/pypy/changeset/c84be963f330/ Log:(antocuni, arigo): use make_ref+decref instead of as_pyobj to convert arguments inside

[pypy-commit] pypy default: (arigo, ronan) Make sure that the keys returned from PyDict_Next are kept alive.

2017-10-09 Thread rlamy
Author: Ronan Lamy Branch: Changeset: r92675:1b7397a88e79 Date: 2017-10-09 16:04 +0200 http://bitbucket.org/pypy/pypy/changeset/1b7397a88e79/ Log:(arigo, ronan) Make sure that the keys returned from PyDict_Next are kept alive. And try to make the general

[pypy-commit] extradoc extradoc: (antocuni, arigo): another idea

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: extradoc Changeset: r5837:5a8c64c3a71f Date: 2017-10-09 14:55 +0200 http://bitbucket.org/pypy/extradoc/changeset/5a8c64c3a71f/ Log:(antocuni, arigo): another idea diff --git a/planning/cpyext.txt b/planning/cpyext.txt ---

[pypy-commit] cffi release-1.11: released cffi 1.11.2

2017-10-09 Thread arigo
Author: Armin Rigo Branch: release-1.11 Changeset: r3047:5f9690f5832b Date: 2017-10-09 14:35 +0200 http://bitbucket.org/cffi/cffi/changeset/5f9690f5832b/ Log:released cffi 1.11.2 diff --git a/doc/source/installation.rst b/doc/source/installation.rst ---

[pypy-commit] cffi default: hg merge release-1.11

2017-10-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r3049:19b4f570695d Date: 2017-10-09 14:35 +0200 http://bitbucket.org/cffi/cffi/changeset/19b4f570695d/ Log:hg merge release-1.11 diff --git a/.hgtags b/.hgtags --- a/.hgtags +++ b/.hgtags @@ -13,3 +13,4 @@

[pypy-commit] cffi release-1.11: Added tag v1.11.2 for changeset 5f9690f5832b

2017-10-09 Thread arigo
Author: Armin Rigo Branch: release-1.11 Changeset: r3048:f06cbc514392 Date: 2017-10-09 14:35 +0200 http://bitbucket.org/cffi/cffi/changeset/f06cbc514392/ Log:Added tag v1.11.2 for changeset 5f9690f5832b diff --git a/.hgtags b/.hgtags --- a/.hgtags +++ b/.hgtags @@ -13,3

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo)

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92673:f74697a4cbd1 Date: 2017-10-09 11:31 +0200 http://bitbucket.org/pypy/pypy/changeset/f74697a4cbd1/ Log:(antocuni, arigo) Fix diff --git a/pypy/module/cpyext/src/object.c

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo)

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92674:22870e1d5f60 Date: 2017-10-09 12:12 +0200 http://bitbucket.org/pypy/pypy/changeset/22870e1d5f60/ Log:(antocuni, arigo) Yay. We are seemingly managing to remove _type_alloc() now. diff --git

[pypy-commit] pypy cpyext-avoid-roundtrip: (antocuni, arigo)

2017-10-09 Thread arigo
Author: Armin Rigo Branch: cpyext-avoid-roundtrip Changeset: r92672:508aeed657b4 Date: 2017-10-09 11:20 +0200 http://bitbucket.org/pypy/pypy/changeset/508aeed657b4/ Log:(antocuni, arigo) This test with -A fails on CPython. Fix it, guessing that this is the

[pypy-commit] pypy cpyext-avoid-roundtrip: we can use the macros now

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92670:c0c845f0324a Date: 2017-10-09 09:04 +0200 http://bitbucket.org/pypy/pypy/changeset/c0c845f0324a/ Log:we can use the macros now diff --git a/pypy/module/cpyext/src/object.c

[pypy-commit] pypy cpyext-avoid-roundtrip: try to be a bit more similar to CPython and raise PyExc_NoMem() inside _PyObject_NewVar() instead of PyObject_Init*()

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92669:f91e599505d5 Date: 2017-10-09 09:00 +0200 http://bitbucket.org/pypy/pypy/changeset/f91e599505d5/ Log:try to be a bit more similar to CPython and raise PyExc_NoMem() inside _PyObject_NewVar()

[pypy-commit] pypy default: (antocuni, arigo)

2017-10-09 Thread arigo
Author: Armin Rigo Branch: Changeset: r92671:00a9596553c6 Date: 2017-10-09 11:20 +0200 http://bitbucket.org/pypy/pypy/changeset/00a9596553c6/ Log:(antocuni, arigo) This test with -A fails on CPython. Fix it, guessing that this is the non-checked-in

[pypy-commit] pypy cpyext-avoid-roundtrip: port PyObject_Init{, Var} to C

2017-10-09 Thread antocuni
Author: Antonio Cuni Branch: cpyext-avoid-roundtrip Changeset: r92668:ed10b210f7b9 Date: 2017-10-09 08:56 +0200 http://bitbucket.org/pypy/pypy/changeset/ed10b210f7b9/ Log:port PyObject_Init{,Var} to C diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py