[pypy-commit] pypy faster-rstruct-2: bah, the base_ofs needs to be proven constant at translation time. Try to help the rtyper

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91305:f23167f0f132 Date: 2017-05-15 19:02 +0200 http://bitbucket.org/pypy/pypy/changeset/f23167f0f132/ Log:bah, the base_ofs needs to be proven constant at translation time. Try to help the rtyper diff --git a/pypy/objspace/st

[pypy-commit] pypy faster-rstruct-2: rewrite buffer.GCBuffer as a class decorator instead of a base class, because we need to provide different, specialized versions of typed_{read, write} in which ba

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91306:67ba2f0639a7 Date: 2017-05-16 11:39 +0200 http://bitbucket.org/pypy/pypy/changeset/67ba2f0639a7/ Log:rewrite buffer.GCBuffer as a class decorator instead of a base class, because we need to provide different, specialized

[pypy-commit] pypy faster-rstruct-2: rpython fix, else the types returned by _get_gc_data conflict

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91304:3e7adaec029c Date: 2017-05-15 17:21 +0200 http://bitbucket.org/pypy/pypy/changeset/3e7adaec029c/ Log:rpython fix, else the types returned by _get_gc_data conflict diff --git a/rpython/rlib/buffer.py b/rpython/rlib/buffer.py ---

[pypy-commit] pypy faster-rstruct-2: use @GCBuffer to implement MutableStringBuffer

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91308:967e8af6bfb8 Date: 2017-05-16 11:47 +0200 http://bitbucket.org/pypy/pypy/changeset/967e8af6bfb8/ Log:use @GCBuffer to implement MutableStringBuffer diff --git a/rpython/rlib/mutbuffer.py b/rpython/rlib/mutbuffer.py --- a/rpython

[pypy-commit] pypy faster-rstruct-2: fix tests

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91307:58756fc27659 Date: 2017-05-16 11:46 +0200 http://bitbucket.org/pypy/pypy/changeset/58756fc27659/ Log:fix tests diff --git a/rpython/rlib/test/test_mutbuffer.py b/rpython/rlib/test/test_mutbuffer.py --- a/rpython/rlib/test/test_

[pypy-commit] pypy faster-rstruct-2: bah

2017-05-16 Thread antocuni
Author: Antonio Cuni Branch: faster-rstruct-2 Changeset: r91309:eace635b2834 Date: 2017-05-16 11:51 +0200 http://bitbucket.org/pypy/pypy/changeset/eace635b2834/ Log:bah diff --git a/pypy/objspace/std/bytearrayobject.py b/pypy/objspace/std/bytearrayobject.py --- a/pypy/objspace/std/bytearray

[pypy-commit] pypy default: add test that passes with -A

2017-05-16 Thread mattip
Author: Matti Picus Branch: Changeset: r91310:ad45faa583f4 Date: 2017-05-15 22:42 +0300 http://bitbucket.org/pypy/pypy/changeset/ad45faa583f4/ Log:add test that passes with -A diff --git a/pypy/module/cpyext/test/test_dictobject.py b/pypy/module/cpyext/test/test_dictobject.py --- a/pypy/mo

[pypy-commit] pypy default: fix test

2017-05-16 Thread mattip
Author: Matti Picus Branch: Changeset: r91312:e45afbe0ded7 Date: 2017-05-16 13:53 +0300 http://bitbucket.org/pypy/pypy/changeset/e45afbe0ded7/ Log:fix test diff --git a/pypy/module/cpyext/test/test_dictobject.py b/pypy/module/cpyext/test/test_dictobject.py --- a/pypy/module/cpyext/test/tes

[pypy-commit] pypy default: add slot definitions for __len__, __setitem__, __delitem__, avoid crash in PyDict_Next

2017-05-16 Thread mattip
Author: Matti Picus Branch: Changeset: r91311:fbcdfc92a521 Date: 2017-05-16 13:52 +0300 http://bitbucket.org/pypy/pypy/changeset/fbcdfc92a521/ Log:add slot definitions for __len__, __setitem__, __delitem__, avoid crash in PyDict_Next diff --git a/pypy/module/cpyext/dictobject.py b/p

[pypy-commit] pypy py3.5: Use correct keyword argument for strftime() routines in datetime

2017-05-16 Thread danchr
Author: Dan Villiom Podlaski Christiansen Branch: py3.5 Changeset: r91313:4e110113b03d Date: 2017-05-16 16:12 +0200 http://bitbucket.org/pypy/pypy/changeset/4e110113b03d/ Log:Use correct keyword argument for strftime() routines in datetime The argument is specified as 'format' on doc

[pypy-commit] pypy cpyext-recursionlimit: add test, implement recursion limit functions with ugly hack for untranslated test

2017-05-16 Thread mattip
Author: Matti Picus Branch: cpyext-recursionlimit Changeset: r91314:9fa4ac53f85d Date: 2017-05-16 20:16 +0300 http://bitbucket.org/pypy/pypy/changeset/9fa4ac53f85d/ Log:add test, implement recursion limit functions with ugly hack for untranslated test diff --git a/pypy/module/cpyext/

[pypy-commit] pypy py3.5: Call sys.__interactivehook__ (issue #2558)

2017-05-16 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r91315:94add67df5b3 Date: 2017-05-16 18:51 +0100 http://bitbucket.org/pypy/pypy/changeset/94add67df5b3/ Log:Call sys.__interactivehook__ (issue #2558) diff --git a/pypy/interpreter/app_main.py b/pypy/interpreter/app_main.py --- a/pypy/interpreter/a

[pypy-commit] pypy py3.5: Document PyBuffer

2017-05-16 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r91316:0ab207b3359d Date: 2017-05-16 20:27 +0100 http://bitbucket.org/pypy/pypy/changeset/0ab207b3359d/ Log:Document PyBuffer diff --git a/pypy/doc/whatsnew-pypy3-head.rst b/pypy/doc/whatsnew-pypy3-head.rst --- a/pypy/doc/whatsnew-pypy3-head.rst ++

[pypy-commit] pypy py3.5: fix test

2017-05-16 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r91317:a0e3281f3874 Date: 2017-05-16 20:32 +0100 http://bitbucket.org/pypy/pypy/changeset/a0e3281f3874/ Log:fix test diff --git a/pypy/interpreter/test/test_error.py b/pypy/interpreter/test/test_error.py --- a/pypy/interpreter/test/test_error.py +

[pypy-commit] pypy py3.5: fix test

2017-05-16 Thread rlamy
Author: Ronan Lamy Branch: py3.5 Changeset: r91318:f74c6e0f3dd2 Date: 2017-05-16 20:57 +0100 http://bitbucket.org/pypy/pypy/changeset/f74c6e0f3dd2/ Log:fix test diff --git a/pypy/module/cpyext/test/test_object.py b/pypy/module/cpyext/test/test_object.py --- a/pypy/module/cpyext/test/test_ob

[pypy-commit] pypy cpyext-recursionlimit: fix translation

2017-05-16 Thread mattip
Author: Matti Picus Branch: cpyext-recursionlimit Changeset: r91319:7b9dd48c2572 Date: 2017-05-16 23:00 +0300 http://bitbucket.org/pypy/pypy/changeset/7b9dd48c2572/ Log:fix translation diff --git a/pypy/module/cpyext/eval.py b/pypy/module/cpyext/eval.py --- a/pypy/module/cpyext/eval.py +++ b