[pypy-commit] cffi default: Improve error message (thanks sarvi)

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r957:6d2a272ad747 Date: 2012-09-22 10:42 +0200 http://bitbucket.org/cffi/cffi/changeset/6d2a272ad747/ Log:Improve error message (thanks sarvi) diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c @@ -2704,8

[pypy-commit] pypy default: use the same error message as the CPython version

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57470:af1bfdaf0f54 Date: 2012-09-22 10:42 +0200 http://bitbucket.org/pypy/pypy/changeset/af1bfdaf0f54/ Log:use the same error message as the CPython version diff --git a/pypy/module/_cffi_backend/libraryobj.py b/pypy/module/_cffi_backend/libraryobj.py

[pypy-commit] cffi default: Accept strings to initialize signed/unsigned char arrays.

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r958:f60f68a19251 Date: 2012-09-22 13:09 +0200 http://bitbucket.org/cffi/cffi/changeset/f60f68a19251/ Log:Accept strings to initialize signed/unsigned char arrays. diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_

[pypy-commit] pypy default: Port CFFI f60f68a19251.

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57471:ed8713b38bdd Date: 2012-09-22 13:10 +0200 http://bitbucket.org/pypy/pypy/changeset/ed8713b38bdd/ Log:Port CFFI f60f68a19251. diff --git a/pypy/module/_cffi_backend/ctypeptr.py b/pypy/module/_cffi_backend/ctypeptr.py --- a/pypy/module/_cffi_backe

[pypy-commit] cffi default: A bytearray doesn't work, by design. If you really want one, you

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r959:8d3d149fd8c0 Date: 2012-09-22 13:17 +0200 http://bitbucket.org/cffi/cffi/changeset/8d3d149fd8c0/ Log:A bytearray doesn't work, by design. If you really want one, you can do buffer(p)[:] = ... diff --git a/c/test_c.py b/c/test_c.py --- a/c/t

[pypy-commit] pypy default: Add the test from CFFI/8d3d149fd8c0.

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57472:419a21153544 Date: 2012-09-22 13:19 +0200 http://bitbucket.org/pypy/pypy/changeset/419a21153544/ Log:Add the test from CFFI/8d3d149fd8c0. diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_te

[pypy-commit] cffi default: another approach

2012-09-22 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r960:a71441696379 Date: 2012-09-22 13:26 +0200 http://bitbucket.org/cffi/cffi/changeset/a71441696379/ Log:another approach diff --git a/testing/test_integration.py b/testing/test_integration.py --- a/testing/test_integration.py +++ b/testing/tes

[pypy-commit] cffi default: ups, fix

2012-09-22 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r961:4a904f2fadb8 Date: 2012-09-22 13:27 +0200 http://bitbucket.org/cffi/cffi/changeset/4a904f2fadb8/ Log:ups, fix diff --git a/testing/test_integration.py b/testing/test_integration.py --- a/testing/test_integration.py +++ b/testing/test_integr

[pypy-commit] cffi default: missing files

2012-09-22 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r962:9bb6eb229269 Date: 2012-09-22 13:28 +0200 http://bitbucket.org/cffi/cffi/changeset/9bb6eb229269/ Log:missing files diff --git a/testing/snippets/basic_verify/setup.py b/testing/snippets/basic_verify/setup.py new file mode 100644 --- /dev/n

[pypy-commit] cffi default: another test

2012-09-22 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r963:05842a259649 Date: 2012-09-22 13:30 +0200 http://bitbucket.org/cffi/cffi/changeset/05842a259649/ Log:another test diff --git a/testing/snippets/setuptools_verify/setup.py b/testing/snippets/setuptools_verify/setup.py new file mode 100644 -

[pypy-commit] pypy py3k: Remove duplicate implementation of RAISE_VARARGS.

2012-09-22 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57473:4a6cfc86e96a Date: 2012-09-22 13:35 +0200 http://bitbucket.org/pypy/pypy/changeset/4a6cfc86e96a/ Log:Remove duplicate implementation of RAISE_VARARGS. diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspace/flow/flowcontext.

[pypy-commit] cffi default: use virtualenv as an executable

2012-09-22 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r964:0607d995c5c2 Date: 2012-09-22 13:39 +0200 http://bitbucket.org/cffi/cffi/changeset/0607d995c5c2/ Log:use virtualenv as an executable diff --git a/testing/test_integration.py b/testing/test_integration.py --- a/testing/test_integration.py ++

[pypy-commit] cffi default: Use the "-p" option to ask "with the same version of Python".

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r965:44c90c1a48be Date: 2012-09-22 13:40 +0200 http://bitbucket.org/cffi/cffi/changeset/44c90c1a48be/ Log:Use the "-p" option to ask "with the same version of Python". diff --git a/testing/test_integration.py b/testing/test_integration.py --- a/testing/

[pypy-commit] cffi default: Don't call %(sys.executable) but simply 'python' here: we are in a

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r966:6d553a541b44 Date: 2012-09-22 13:53 +0200 http://bitbucket.org/cffi/cffi/changeset/6d553a541b44/ Log:Don't call %(sys.executable) but simply 'python' here: we are in a virtualenv. diff --git a/testing/test_integration.py b/testing/test_inte

[pypy-commit] pypy translation-cleanup: Inline _exception_getclass() into FSException.

2012-09-22 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57474:3be388a71ef5 Date: 2012-09-22 02:14 +0100 http://bitbucket.org/pypy/pypy/changeset/3be388a71ef5/ Log:Inline _exception_getclass() into FSException. Since space.exception_is_valid_class_w() is always true in flow

[pypy-commit] pypy translation-cleanup: Replace operr.normalize_exception() with space.exc_from_raise()

2012-09-22 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57475:d1d1a2728e07 Date: 2012-09-22 05:23 +0100 http://bitbucket.org/pypy/pypy/changeset/d1d1a2728e07/ Log:Replace operr.normalize_exception() with space.exc_from_raise() diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspac

[pypy-commit] pypy translation-cleanup: Do not attach tracebacks to FSExceptions

2012-09-22 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57476:53efdfee7ea0 Date: 2012-09-22 14:58 +0100 http://bitbucket.org/pypy/pypy/changeset/53efdfee7ea0/ Log:Do not attach tracebacks to FSExceptions RPython didn't actually do anything with these tracebacks. diff --git a/pypy

[pypy-commit] pypy default: A simple idea that should fix issue1067: when we hit the limit

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57477:c7c74257157c Date: 2012-09-22 18:57 +0200 http://bitbucket.org/pypy/pypy/changeset/c7c74257157c/ Log:A simple idea that should fix issue1067: when we hit the limit 'max_unroll_loops', then instead of aborting, retry to compile by d

[pypy-commit] pypy default: Maybe temporary: set max_unroll_loops to 0, which should completely

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57478:dcb788955e9c Date: 2012-09-22 19:22 +0200 http://bitbucket.org/pypy/pypy/changeset/dcb788955e9c/ Log:Maybe temporary: set max_unroll_loops to 0, which should completely prevent tracing more than 1 iteration. Maybe a better value would

[pypy-commit] pypy default: Slight code clean up in _csv

2012-09-22 Thread alex_gaynor
Author: Alex Gaynor Branch: Changeset: r57479:69faddd3525c Date: 2012-09-22 10:46 -0700 http://bitbucket.org/pypy/pypy/changeset/69faddd3525c/ Log:Slight code clean up in _csv diff --git a/lib_pypy/_csv.py b/lib_pypy/_csv.py --- a/lib_pypy/_csv.py +++ b/lib_pypy/_csv.py @@ -363,9 +363,7 @@

[pypy-commit] cffi default: Trying out a "fast csv" module that compiles specialized versions

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r967:dbbbdfe8957f Date: 2012-09-22 21:50 +0200 http://bitbucket.org/cffi/cffi/changeset/dbbbdfe8957f/ Log:Trying out a "fast csv" module that compiles specialized versions of the parsing function... diff --git a/demo/fastcsv.py b/demo/fastcsv.py

[pypy-commit] pypy default: issue1253 testing

2012-09-22 Thread arigo
Author: Armin Rigo Branch: Changeset: r57480:417403f0dc1a Date: 2012-09-23 00:19 +0200 http://bitbucket.org/pypy/pypy/changeset/417403f0dc1a/ Log:issue1253 testing Remove from the AST compiler the (apparently) only two places that recurse on basic blocks. diff --git a/pypy/