[pypy-commit] pypy null_byte_after_str: Can't really do shrinklength() on a ll2ctypesified object

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85945:6b77b11738cf Date: 2016-07-31 09:42 +0200 http://bitbucket.org/pypy/pypy/changeset/6b77b11738cf/ Log:Can't really do shrinklength() on a ll2ctypesified object diff --git a/rpython/rtyper/lltypesystem/ll2ctypes.py b/rpython/rty

[pypy-commit] pypy null_byte_after_str: Mess mess. Workaround and documentation.

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85946:1506e7bcad69 Date: 2016-07-31 09:47 +0200 http://bitbucket.org/pypy/pypy/changeset/1506e7bcad69/ Log:Mess mess. Workaround and documentation. diff --git a/rpython/memory/gcheader.py b/rpython/memory/gcheader.py --- a/rpython/me

[pypy-commit] pypy null_byte_after_str: Cancel the changes to the annotator, causing verye obscure rare

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85947:30dbb1cd63dd Date: 2016-07-31 11:24 +0200 http://bitbucket.org/pypy/pypy/changeset/30dbb1cd63dd/ Log:Cancel the changes to the annotator, causing verye obscure rare problems. Implement it differently inside rffi.llextern

[pypy-commit] pypy null_byte_after_str: fix

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85949:a51e4cb76c3b Date: 2016-07-31 11:43 +0200 http://bitbucket.org/pypy/pypy/changeset/a51e4cb76c3b/ Log:fix diff --git a/rpython/rlib/objectmodel.py b/rpython/rlib/objectmodel.py --- a/rpython/rlib/objectmodel.py +++ b/rpython/rli

[pypy-commit] pypy null_byte_after_str: Hack hack hack to disable the ll2ctypes path of get_nonmovingbuffer()

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85948:529f8f3a4c48 Date: 2016-07-31 11:37 +0200 http://bitbucket.org/pypy/pypy/changeset/529f8f3a4c48/ Log:Hack hack hack to disable the ll2ctypes path of get_nonmovingbuffer() everywhere. Now it should only be used by real

[pypy-commit] pypy null_byte_after_str: Allow ffi.from_buffer(string). Returns a 'char *' that is valid as long as

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85950:793c88ca9d2e Date: 2016-07-31 14:08 +0200 http://bitbucket.org/pypy/pypy/changeset/793c88ca9d2e/ Log:Allow ffi.from_buffer(string). Returns a 'char *' that is valid as long as the string object is alive. diff --git a/py

[pypy-commit] pypy null_byte_after_str: add comment

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85951:83ce880c8d55 Date: 2016-07-31 14:11 +0200 http://bitbucket.org/pypy/pypy/changeset/83ce880c8d55/ Log:add comment diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_test_c.p

[pypy-commit] pypy null_byte_after_str: fixes, and write the final null char here too (why not)

2016-07-31 Thread arigo
Author: Armin Rigo Branch: null_byte_after_str Changeset: r85952:f3c5e2928db5 Date: 2016-07-31 14:20 +0200 http://bitbucket.org/pypy/pypy/changeset/f3c5e2928db5/ Log:fixes, and write the final null char here too (why not) diff --git a/pypy/module/_cffi_backend/func.py b/pypy/module/_cffi_ba

[pypy-commit] cffi default: Test and fix: refuse to 'recompile' a cdef that declares a struct

2016-07-31 Thread arigo
Author: Armin Rigo Branch: Changeset: r2728:a50293aa9bd1 Date: 2016-07-31 15:07 +0200 http://bitbucket.org/cffi/cffi/changeset/a50293aa9bd1/ Log:Test and fix: refuse to 'recompile' a cdef that declares a struct with an opaque struct as a field diff --git a/cffi/recompiler.py b/cffi/

[pypy-commit] cffi default: Issue #275: add Python 3.5 here

2016-07-31 Thread arigo
Author: Armin Rigo Branch: Changeset: r2730:49b9b83e032e Date: 2016-07-31 21:08 +0200 http://bitbucket.org/cffi/cffi/changeset/49b9b83e032e/ Log:Issue #275: add Python 3.5 here diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -188,6 +188,7 @@ 'Programming Langu

[pypy-commit] cffi default: Document the fact that the C code contains '#define Py_LIMITED_API'.

2016-07-31 Thread arigo
Author: Armin Rigo Branch: Changeset: r2729:8f867f5a869f Date: 2016-07-31 21:05 +0200 http://bitbucket.org/cffi/cffi/changeset/8f867f5a869f/ Log:Document the fact that the C code contains '#define Py_LIMITED_API'. diff --git a/doc/source/cdef.rst b/doc/source/cdef.rst --- a/doc/source/cdef.

[pypy-commit] pypy py3.5-async: Pass object to function returned by lookup instead of None

2016-07-31 Thread raffael_t
Author: Raffael Tfirst Branch: py3.5-async Changeset: r85953:8a281ce6dd54 Date: 2016-07-31 22:53 +0200 http://bitbucket.org/pypy/pypy/changeset/8a281ce6dd54/ Log:Pass object to function returned by lookup instead of None diff --git a/pypy/interpreter/generator.py b/pypy/interpreter/generator