[pypy-commit] pypy default: provide copy for numpy scalars

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67944:a6bcf5d26ccd Date: 2013-11-10 22:41 -0500 http://bitbucket.org/pypy/pypy/changeset/a6bcf5d26ccd/ Log:provide copy for numpy scalars diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py --- a/pypy/module/

[pypy-commit] pypy default: fix a numpy scalar indexing case

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67940:99f9d0c4eb89 Date: 2013-11-10 21:30 -0500 http://bitbucket.org/pypy/pypy/changeset/99f9d0c4eb89/ Log:fix a numpy scalar indexing case diff --git a/pypy/module/micronumpy/interp_boxes.py b/pypy/module/micronumpy/interp_boxes.py --- a/pypy/modul

[pypy-commit] pypy default: provide len for numpy dtypes

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67941:8e73b35beb24 Date: 2013-11-10 21:42 -0500 http://bitbucket.org/pypy/pypy/changeset/8e73b35beb24/ Log:provide len for numpy dtypes diff --git a/pypy/module/micronumpy/interp_dtype.py b/pypy/module/micronumpy/interp_dtype.py --- a/pypy/module/mi

[pypy-commit] pypy default: link the ndarray.{resize, squeeze} stubs

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67942:808f15933ea2 Date: 2013-11-10 21:48 -0500 http://bitbucket.org/pypy/pypy/changeset/808f15933ea2/ Log:link the ndarray.{resize,squeeze} stubs diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py ---

[pypy-commit] pypy default: provide ndarray.squeeze

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67943:00ec1be89de6 Date: 2013-11-10 22:14 -0500 http://bitbucket.org/pypy/pypy/changeset/00ec1be89de6/ Log:provide ndarray.squeeze diff --git a/pypy/module/micronumpy/interp_numarray.py b/pypy/module/micronumpy/interp_numarray.py --- a/pypy/module/m

[pypy-commit] pypy default: fix a complex scalar str_format case

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67939:9ed2dd8cdfe8 Date: 2013-11-10 20:44 -0500 http://bitbucket.org/pypy/pypy/changeset/9ed2dd8cdfe8/ Log:fix a complex scalar str_format case diff --git a/pypy/module/micronumpy/test/test_scalar.py b/pypy/module/micronumpy/test/test_scalar.py ---

[pypy-commit] pypy default: fix a numpy complex zero division case

2013-11-10 Thread bdkearns
Author: Brian Kearns Branch: Changeset: r67938:7acb38913282 Date: 2013-11-10 20:11 -0500 http://bitbucket.org/pypy/pypy/changeset/7acb38913282/ Log:fix a numpy complex zero division case diff --git a/pypy/module/micronumpy/test/dummy_module.py b/pypy/module/micronumpy/test/dummy_module.py

[pypy-commit] pypy default: CPython compat: accept (but ignore) an argument to gc.collect().

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67937:7fdbc8f2860e Date: 2013-11-11 00:17 +0100 http://bitbucket.org/pypy/pypy/changeset/7fdbc8f2860e/ Log:CPython compat: accept (but ignore) an argument to gc.collect(). diff --git a/pypy/module/gc/interp_gc.py b/pypy/module/gc/interp_gc.py --- a/pyp

[pypy-commit] pypy default: Issue1491. Test and fix: when CSI escape sequences are given in the

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67936:b1648711d9dc Date: 2013-11-11 00:14 +0100 http://bitbucket.org/pypy/pypy/changeset/b1648711d9dc/ Log:Issue1491. Test and fix: when CSI escape sequences are given in the prompts for raw_input(), even if they are not within \x01..\x02,

[pypy-commit] pypy default: Kill a few lines of very old outdated doc.

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67935:50b1613bc5b9 Date: 2013-11-10 23:31 +0100 http://bitbucket.org/pypy/pypy/changeset/50b1613bc5b9/ Log:Kill a few lines of very old outdated doc. diff --git a/pypy/doc/interpreter.rst b/pypy/doc/interpreter.rst --- a/pypy/doc/interpreter.rst +++ b/

[pypy-commit] pypy default: Issue1627. Test and fix: it's a bit strange, but we need to follow

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67934:1dc9140b7f44 Date: 2013-11-10 23:08 +0100 http://bitbucket.org/pypy/pypy/changeset/1dc9140b7f44/ Log:Issue1627. Test and fix: it's a bit strange, but we need to follow CPython's lead here and return a string as long as possible, and a

[pypy-commit] lang-scheme default: fix compile on windows, add nicer error when file not found

2013-11-10 Thread timfel
Author: Tim Felgentreff Branch: Changeset: r45:b1d5a1b8744f Date: 2013-11-10 19:15 +0100 http://bitbucket.org/pypy/lang-scheme/changeset/b1d5a1b8744f/ Log:fix compile on windows, add nicer error when file not found diff --git a/scheme/execution.py b/scheme/execution.py --- a/scheme/executio

[pypy-commit] pypy default: Translation fix

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67933:c23cbc5014a9 Date: 2013-11-10 16:44 +0100 http://bitbucket.org/pypy/pypy/changeset/c23cbc5014a9/ Log:Translation fix diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rlib/rbigint.py +++ b/rpython/rlib/rbigint.py @@ -94

[pypy-commit] pypy default: Add unmarshalling tests here too, for longs.

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67932:b217875cc083 Date: 2013-11-10 16:12 +0100 http://bitbucket.org/pypy/pypy/changeset/b217875cc083/ Log:Add unmarshalling tests here too, for longs. diff --git a/pypy/module/marshal/test/test_marshalimpl.py b/pypy/module/marshal/test/test_marshalim

[pypy-commit] pypy default: Reverse: a way to build rbigint objects from digits given in base 2**n,

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67930:196622fea620 Date: 2013-11-10 16:04 +0100 http://bitbucket.org/pypy/pypy/changeset/196622fea620/ Log:Reverse: a way to build rbigint objects from digits given in base 2**n, for any n <= SHIFT. diff --git a/rpython/rlib/rbigint.py b/rpytho

[pypy-commit] pypy default: These masks are not needed. The first is useless, and the 2nd one is

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67927:e66808b74918 Date: 2013-11-10 14:12 +0100 http://bitbucket.org/pypy/pypy/changeset/e66808b74918/ Log:These masks are not needed. The first is useless, and the 2nd one is done by setdigits() anyway. diff --git a/rpython/rlib/rbigint.py b/r

[pypy-commit] pypy default: Fix the bogus complexity of marshal dumping "long" objects

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67929:837dea310b4d Date: 2013-11-10 14:48 +0100 http://bitbucket.org/pypy/pypy/changeset/837dea310b4d/ Log:Fix the bogus complexity of marshal dumping "long" objects diff --git a/pypy/module/marshal/test/test_marshalimpl.py b/pypy/module/marshal/test/

[pypy-commit] pypy default: Unmarshal longs using the new from_list_n_bits().

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67931:31ea0b839ffc Date: 2013-11-10 16:06 +0100 http://bitbucket.org/pypy/pypy/changeset/31ea0b839ffc/ Log:Unmarshal longs using the new from_list_n_bits(). diff --git a/pypy/objspace/std/marshal_impl.py b/pypy/objspace/std/marshal_impl.py --- a/pypy/

[pypy-commit] pypy default: Add a function to extract a (small) number of bits from a bigint.

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67928:6eaf1ec3939a Date: 2013-11-10 14:33 +0100 http://bitbucket.org/pypy/pypy/changeset/6eaf1ec3939a/ Log:Add a function to extract a (small) number of bits from a bigint. diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py --- a/rpython/rl

[pypy-commit] cffi default: Issue #116: give out a warning when we're doing that

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1411:861bff9ef031 Date: 2013-11-10 13:20 +0100 http://bitbucket.org/cffi/cffi/changeset/861bff9ef031/ Log:Issue #116: give out a warning when we're doing that diff --git a/cffi/vengine_cpy.py b/cffi/vengine_cpy.py --- a/cffi/vengine_cpy.py +++ b/cffi/v

[pypy-commit] pypy stmgc-c4: non-gc arrays mustn't get a barrier (getarraysize)

2013-11-10 Thread Raemi
Author: Remi Meier Branch: stmgc-c4 Changeset: r67926:eb21e739cefa Date: 2013-11-10 12:05 +0100 http://bitbucket.org/pypy/pypy/changeset/eb21e739cefa/ Log:non-gc arrays mustn't get a barrier (getarraysize) diff --git a/rpython/translator/stm/test/test_writebarrier.py b/rpython/translator/st

[pypy-commit] cffi default: Issue #118: improve the detection and error message, jumping

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1410:c3942c440199 Date: 2013-11-10 12:00 +0100 http://bitbucket.org/cffi/cffi/changeset/c3942c440199/ Log:Issue #118: improve the detection and error message, jumping through hoops to cover both signed and unsigned cases. diff --git a/cffi/veng

[pypy-commit] pypy default: Add protection against a rare, hard-to-reproduce bug that I believe cannot

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67925:37537ea3d3c6 Date: 2013-11-10 10:21 + http://bitbucket.org/pypy/pypy/changeset/37537ea3d3c6/ Log:Add protection against a rare, hard-to-reproduce bug that I believe cannot occur in CPython's refcounting model. diff --git a/lib-python/

[pypy-commit] cffi default: Issue #112: add demo/ in the distributed tar file.

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1409:8dfdd2c265a1 Date: 2013-11-10 10:12 +0100 http://bitbucket.org/cffi/cffi/changeset/8dfdd2c265a1/ Log:Issue #112: add demo/ in the distributed tar file. diff --git a/MANIFEST.in b/MANIFEST.in --- a/MANIFEST.in +++ b/MANIFEST.in @@ -2,4 +2,5 @@ rec

[pypy-commit] pypy default: WeakValueDictionary has a bug that is rare on CPython but

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67922:1f02ae2291ae Date: 2013-11-10 09:54 +0100 http://bitbucket.org/pypy/pypy/changeset/1f02ae2291ae/ Log:WeakValueDictionary has a bug that is rare on CPython but more common on PyPy. Fix it here and report it as http://bugs.python.org

[pypy-commit] pypy default: Import cffi/1e317570f885

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67923:b1b2e7994eda Date: 2013-11-10 09:05 + http://bitbucket.org/pypy/pypy/changeset/b1b2e7994eda/ Log:Import cffi/1e317570f885 diff --git a/lib_pypy/cffi/api.py b/lib_pypy/cffi/api.py --- a/lib_pypy/cffi/api.py +++ b/lib_pypy/cffi/api.py @@ -129,1

[pypy-commit] pypy default: merge heads

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r67924:1acc538d3b48 Date: 2013-11-10 10:06 +0100 http://bitbucket.org/pypy/pypy/changeset/1acc538d3b48/ Log:merge heads diff --git a/pypy/module/_cffi_backend/ctypestruct.py b/pypy/module/_cffi_backend/ctypestruct.py --- a/pypy/module/_cffi_backend/cty

[pypy-commit] cffi default: Due to a CPython bug, we cannot use setdefault() here

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1408:1e317570f885 Date: 2013-11-10 10:03 +0100 http://bitbucket.org/cffi/cffi/changeset/1e317570f885/ Log:Due to a CPython bug, we cannot use setdefault() here diff --git a/cffi/model.py b/cffi/model.py --- a/cffi/model.py +++ b/cffi/model.py @@ -477,1

[pypy-commit] cffi default: Bah, setdefault() is not atomic on WeakValueDictionary.

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1407:d830b07122a6 Date: 2013-11-10 09:18 +0100 http://bitbucket.org/cffi/cffi/changeset/d830b07122a6/ Log:Bah, setdefault() is not atomic on WeakValueDictionary. diff --git a/cffi/model.py b/cffi/model.py --- a/cffi/model.py +++ b/cffi/model.py @@ -1,4

[pypy-commit] cffi default: Small tweaks

2013-11-10 Thread arigo
Author: Armin Rigo Branch: Changeset: r1406:1352b9a24203 Date: 2013-11-10 08:59 +0100 http://bitbucket.org/cffi/cffi/changeset/1352b9a24203/ Log:Small tweaks diff --git a/cffi/api.py b/cffi/api.py --- a/cffi/api.py +++ b/cffi/api.py @@ -129,11 +129,9 @@ cdecl = cdecl.encode('as