[pypy-commit] pypy numpypy-complex2: add tests, fix for numpy.real, imag

2012-09-24 Thread mattip
Author: mattip Branch: numpypy-complex2 Changeset: r57544:595e125b5022 Date: 2012-09-25 08:22 +0200 http://bitbucket.org/pypy/pypy/changeset/595e125b5022/ Log:add tests, fix for numpy.real, imag diff --git a/pypy/module/micronumpy/__init__.py b/pypy/module/micronumpy/__init__.py --- a/pypy/

[pypy-commit] pypy translation-cleanup: Copy frame block handling from pyopcode.py into flowcontext.py

2012-09-24 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57542:1aa0d529d66a Date: 2012-09-25 02:03 +0100 http://bitbucket.org/pypy/pypy/changeset/1aa0d529d66a/ Log:Copy frame block handling from pyopcode.py into flowcontext.py Also: * Copy CONTINUE_LOOP, BREAK_LOOP, SETUP_L

[pypy-commit] pypy default: Reduce differences in rsocket.py between default and py3k:

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57541:968e401d5ff6 Date: 2012-09-25 01:21 +0200 http://bitbucket.org/pypy/pypy/changeset/968e401d5ff6/ Log:Reduce differences in rsocket.py between default and py3k: RSocket.accept only returns the file descriptor, the client is

[pypy-commit] pypy py3k: Oops, fix merge.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57540:6a71f9e9ff7f Date: 2012-09-25 01:17 +0200 http://bitbucket.org/pypy/pypy/changeset/6a71f9e9ff7f/ Log:Oops, fix merge. diff --git a/pypy/module/_codecs/interp_codecs.py b/pypy/module/_codecs/interp_codecs.py --- a/pypy/module/_codec

[pypy-commit] pypy py3k: Translation fix.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57539:b1fcf7f44eca Date: 2012-09-25 00:32 +0200 http://bitbucket.org/pypy/pypy/changeset/b1fcf7f44eca/ Log:Translation fix. diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py --- a/pypy/objspace/std/unic

[pypy-commit] pypy numpypy-complex2: revert complex128 special values to c99 compatability

2012-09-24 Thread mattip
Author: mattip Branch: numpypy-complex2 Changeset: r57538:99bfb616d6ec Date: 2012-09-25 00:05 +0200 http://bitbucket.org/pypy/pypy/changeset/99bfb616d6ec/ Log:revert complex128 special values to c99 compatability diff --git a/pypy/module/micronumpy/test/complex_testcases.txt b/pypy/module/m

[pypy-commit] pypy py3k: Fixes after merge.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57537:609300b6c30f Date: 2012-09-24 23:55 +0200 http://bitbucket.org/pypy/pypy/changeset/609300b6c30f/ Log:Fixes after merge. diff --git a/pypy/objspace/std/ropeunicodeobject.py b/pypy/objspace/std/ropeunicodeobject.py --- a/pypy/objspac

[pypy-commit] pypy default: No more differences in runicode.py between the two branches.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57536:b1e2a52edb57 Date: 2012-09-24 23:54 +0200 http://bitbucket.org/pypy/pypy/changeset/b1e2a52edb57/ Log:No more differences in runicode.py between the two branches. (I'm not sure why py3k needs this _impl split) diff --git a/pypy/r

[pypy-commit] pypy py3k: Issue1262: str.__repr__ now passes all printable characters.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57533:a2b494570133 Date: 2012-09-23 22:38 +0200 http://bitbucket.org/pypy/pypy/changeset/a2b494570133/ Log:Issue1262: str.__repr__ now passes all printable characters. Patch by arielby. diff --git a/pypy/objspace/std/test/test_uni

[pypy-commit] pypy py3k: hg merge default

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57535:6367f38e2321 Date: 2012-09-24 23:44 +0200 http://bitbucket.org/pypy/pypy/changeset/6367f38e2321/ Log:hg merge default diff --git a/pypy/module/_codecs/interp_codecs.py b/pypy/module/_codecs/interp_codecs.py --- a/pypy/module/_codec

[pypy-commit] pypy py3k: Now that unicode.encode('utf8') can fail, it's important to build

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57532:5ad25f0c04b3 Date: 2012-09-23 22:27 +0200 http://bitbucket.org/pypy/pypy/changeset/5ad25f0c04b3/ Log:Now that unicode.encode('utf8') can fail, it's important to build the cached utf8 copy only when requested. Otherwise chr(0x

[pypy-commit] pypy py3k: Also fix ropeunicodeobject.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57534:809b97e80551 Date: 2012-09-23 22:58 +0200 http://bitbucket.org/pypy/pypy/changeset/809b97e80551/ Log:Also fix ropeunicodeobject. diff --git a/pypy/objspace/std/ropeunicodeobject.py b/pypy/objspace/std/ropeunicodeobject.py --- a/pyp

[pypy-commit] pypy py3k: hg merge default

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57530:87147c4713f0 Date: 2012-09-23 18:11 +0200 http://bitbucket.org/pypy/pypy/changeset/87147c4713f0/ Log:hg merge default 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] pypy py3k: hg merge default

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57531:4b604aab3f8f Date: 2012-09-23 18:36 +0200 http://bitbucket.org/pypy/pypy/changeset/4b604aab3f8f/ Log:hg merge default diff --git a/pypy/rlib/runicode.py b/pypy/rlib/runicode.py --- a/pypy/rlib/runicode.py +++ b/pypy/rlib/runicode.py

[pypy-commit] pypy py3k: Issue1262 in-progress: lone surrogates are invalid in utf-8.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57528:5f5f1528884c Date: 2012-09-23 17:06 +0200 http://bitbucket.org/pypy/pypy/changeset/5f5f1528884c/ Log:Issue1262 in-progress: lone surrogates are invalid in utf-8. One exception: when encoding, and only for narrow unicode build

[pypy-commit] pypy py3k: Issue1262 in-progress: add unicode.isprintable().

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57529:19c10384d3e7 Date: 2012-09-23 17:21 +0200 http://bitbucket.org/pypy/pypy/changeset/19c10384d3e7/ Log:Issue1262 in-progress: add unicode.isprintable(). One test stil fails, until we use Unicode version 6.0. Patch by arielby.

[pypy-commit] pypy py3k: Issue1262 in-progress: add isprintable() to the unicode database.

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: py3k Changeset: r57527:52aadd8779b4 Date: 2012-09-23 10:59 +0200 http://bitbucket.org/pypy/pypy/changeset/52aadd8779b4/ Log:Issue1262 in-progress: add isprintable() to the unicode database. Patch by arielby. diff --git a/pypy/module/unicodedata/ge

[pypy-commit] pypy default: An attempt to reduce differences in rlib/runicode.py,

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57525:ff3afc19472c Date: 2012-09-24 23:34 +0200 http://bitbucket.org/pypy/pypy/changeset/ff3afc19472c/ Log:An attempt to reduce differences in rlib/runicode.py, between default and py3k branches. - by default, utf_8 functions d

[pypy-commit] pypy default: merge heads

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57526:a79482e85abd Date: 2012-09-24 23:45 +0200 http://bitbucket.org/pypy/pypy/changeset/a79482e85abd/ Log:merge heads diff --git a/lib-python/2.7/test/test_csv.py b/lib-python/2.7/test/test_csv.py --- a/lib-python/2.7/test/test_csv.py +++ b/

[pypy-commit] pypy default: We will need copies of this function as well

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57524:feb33e1463b1 Date: 2012-09-23 18:36 +0200 http://bitbucket.org/pypy/pypy/changeset/feb33e1463b1/ Log:We will need copies of this function as well diff --git a/pypy/rlib/runicode.py b/pypy/rlib/runicode.py --- a/pypy/rlib/runicode.py +++

[pypy-commit] pypy default: Indirect creation of function unicode_encode_unicode_escape(),

2012-09-24 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r57523:ece825856859 Date: 2012-09-23 18:08 +0200 http://bitbucket.org/pypy/pypy/changeset/ece825856859/ Log:Indirect creation of function unicode_encode_unicode_escape(), will make sense in python3 which needs different variations of th

[pypy-commit] pypy translation-cleanup: Kill FlowObjSpace.interpclass_w()

2012-09-24 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57522:f8696546fca5 Date: 2012-09-24 21:42 +0100 http://bitbucket.org/pypy/pypy/changeset/f8696546fca5/ Log:Kill FlowObjSpace.interpclass_w() diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspace/flow/flowcontext.py --- a/py

[pypy-commit] pypy translation-cleanup: Clarify logic of FSFrame.END_FINALLY

2012-09-24 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57521:3bfdd3313aaf Date: 2012-09-24 21:35 +0100 http://bitbucket.org/pypy/pypy/changeset/3bfdd3313aaf/ Log:Clarify logic of FSFrame.END_FINALLY diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspace/flow/flowcontext.py --- a

[pypy-commit] pypy translation-cleanup: Copy end_finally() into FSFrame

2012-09-24 Thread rlamy
Author: Ronan Lamy Branch: translation-cleanup Changeset: r57520:a8bc9d7d6b42 Date: 2012-09-24 03:39 +0100 http://bitbucket.org/pypy/pypy/changeset/a8bc9d7d6b42/ Log:Copy end_finally() into FSFrame diff --git a/pypy/objspace/flow/flowcontext.py b/pypy/objspace/flow/flowcontext.py --- a/pypy

[pypy-commit] pypy numpypy-complex2: penultimate test passes

2012-09-24 Thread mattip
Author: mattip Branch: numpypy-complex2 Changeset: r57519:75062b2bdf01 Date: 2012-09-24 22:14 +0200 http://bitbucket.org/pypy/pypy/changeset/75062b2bdf01/ Log:penultimate test passes diff --git a/pypy/module/micronumpy/test/test_complex.py b/pypy/module/micronumpy/test/test_complex.py --- a

[pypy-commit] pypy numpypy-complex2: add last tests

2012-09-24 Thread mattip
Author: mattip Branch: numpypy-complex2 Changeset: r57518:2267f8834f39 Date: 2012-09-24 22:10 +0200 http://bitbucket.org/pypy/pypy/changeset/2267f8834f39/ Log:add last tests diff --git a/pypy/module/micronumpy/interp_ufuncs.py b/pypy/module/micronumpy/interp_ufuncs.py --- a/pypy/module/micr

[pypy-commit] pypy numpypy-complex2: test log2, fix expected val for exp(complex(inf, inf)) for numpy compatability

2012-09-24 Thread mattip
Author: mattip Branch: numpypy-complex2 Changeset: r57517:4554f3a57c95 Date: 2012-09-23 22:18 +0200 http://bitbucket.org/pypy/pypy/changeset/4554f3a57c95/ Log:test log2, fix expected val for exp(complex(inf, inf)) for numpy compatability diff --git a/pypy/module/micronumpy/test/test_

[pypy-commit] pypy default: CFFI: Prepare for the version 0.4 (not released yet!).

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57516:0b33ee573ac9 Date: 2012-09-24 21:13 +0200 http://bitbucket.org/pypy/pypy/changeset/0b33ee573ac9/ Log:CFFI: Prepare for the version 0.4 (not released yet!). diff --git a/pypy/module/_cffi_backend/__init__.py b/pypy/module/_cffi_backend/__init__.p

[pypy-commit] cffi default: Prepare for the version 0.4 (not released yet!).

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r969:121f1e7ff2cd Date: 2012-09-24 21:12 +0200 http://bitbucket.org/cffi/cffi/changeset/121f1e7ff2cd/ Log:Prepare for the version 0.4 (not released yet!). diff --git a/c/_cffi_backend.c b/c/_cffi_backend.c --- a/c/_cffi_backend.c +++ b/c/_cffi_backend.c

[pypy-commit] pypy default: Update to cffi/0c8581ea7507:

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57515:77a1f83acc8e Date: 2012-09-24 21:09 +0200 http://bitbucket.org/pypy/pypy/changeset/77a1f83acc8e/ Log:Update to cffi/0c8581ea7507: Change the default dlopen() flags from RTLD_LAZY to RTLD_NOW. Give access to all flags, for more pre

[pypy-commit] pypy length-hint: (fijal) don't overalloc in resizelist_hint ge

2012-09-24 Thread pjenvey
Author: Philip Jenvey Branch: length-hint Changeset: r57514:5ec22166aed2 Date: 2012-09-24 10:48 -0700 http://bitbucket.org/pypy/pypy/changeset/5ec22166aed2/ Log:(fijal) don't overalloc in resizelist_hint ge diff --git a/pypy/rpython/lltypesystem/rlist.py b/pypy/rpython/lltypesystem/rlist.py

[pypy-commit] pypy length-hint: simplify and move the guts of list init into extend. fix extend from lists w/

2012-09-24 Thread pjenvey
Author: Philip Jenvey Branch: length-hint Changeset: r57513:108124bb4fe6 Date: 2012-09-24 10:47 -0700 http://bitbucket.org/pypy/pypy/changeset/108124bb4fe6/ Log:simplify and move the guts of list init into extend. fix extend from lists w/ custom iterators diff --git a/pypy/objspace/s

[pypy-commit] pypy default: whitespace

2012-09-24 Thread pjenvey
Author: Philip Jenvey Branch: Changeset: r57511:3e625c977511 Date: 2012-09-24 09:59 -0700 http://bitbucket.org/pypy/pypy/changeset/3e625c977511/ Log:whitespace diff --git a/pypy/objspace/std/listobject.py b/pypy/objspace/std/listobject.py --- a/pypy/objspace/std/listobject.py +++ b/pypy/obj

[pypy-commit] pypy default: Another place that needs to be loosened

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57510:7da5e9a9606c Date: 2012-09-24 18:09 +0200 http://bitbucket.org/pypy/pypy/changeset/7da5e9a9606c/ Log:Another place that needs to be loosened diff --git a/lib-python/2.7/test/test_csv.py b/lib-python/2.7/test/test_csv.py --- a/lib-python/2.7/test/

[pypy-commit] pypy default: The _csv module is translating.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57507:fa0b341cf035 Date: 2012-09-24 17:45 +0200 http://bitbucket.org/pypy/pypy/changeset/fa0b341cf035/ Log:The _csv module is translating. diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py --- a/pypy/config/pypyoption.py +++ b/pypy/con

[pypy-commit] pypy default: ztranslation test

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57505:8e4dc9372409 Date: 2012-09-24 17:07 +0200 http://bitbucket.org/pypy/pypy/changeset/8e4dc9372409/ Log:ztranslation test diff --git a/pypy/module/_csv/test/test_ztranslation.py b/pypy/module/_csv/test/test_ztranslation.py new file mode 100644 ---

[pypy-commit] pypy default: Test and fix

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57509:0db479b9983d Date: 2012-09-24 18:06 +0200 http://bitbucket.org/pypy/pypy/changeset/0db479b9983d/ Log:Test and fix diff --git a/pypy/module/_csv/interp_reader.py b/pypy/module/_csv/interp_reader.py --- a/pypy/module/_csv/interp_reader.py +++ b/py

[pypy-commit] pypy default: Port some tests from CPython.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57499:95d15eb62e18 Date: 2012-09-24 15:46 +0200 http://bitbucket.org/pypy/pypy/changeset/95d15eb62e18/ Log:Port some tests from CPython. diff --git a/lib-python/conftest.py b/lib-python/conftest.py --- a/lib-python/conftest.py +++ b/lib-python/conftest

[pypy-commit] pypy default: Fix the test by allowing a different exception in two corner error cases.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57508:d6c016e3e5b1 Date: 2012-09-24 18:06 +0200 http://bitbucket.org/pypy/pypy/changeset/d6c016e3e5b1/ Log:Fix the test by allowing a different exception in two corner error cases. diff --git a/lib-python/2.7/test/test_csv.py b/lib-python/2.7/t

[pypy-commit] pypy default: More tests. writerows().

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57504:442076db3e84 Date: 2012-09-24 17:01 +0200 http://bitbucket.org/pypy/pypy/changeset/442076db3e84/ Log:More tests. writerows(). diff --git a/pypy/module/_csv/interp_writer.py b/pypy/module/_csv/interp_writer.py --- a/pypy/module/_csv/interp_writer

[pypy-commit] pypy default: Remove 'field_builder.append', which can crash the flow space

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57506:6ba378006e61 Date: 2012-09-24 17:23 +0200 http://bitbucket.org/pypy/pypy/changeset/6ba378006e61/ Log:Remove 'field_builder.append', which can crash the flow space depending on order issues with a 'None.append'. diff --git a/pypy/module/_c

[pypy-commit] pypy default: 'line_num' test

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57502:814b36029e7a Date: 2012-09-24 16:02 +0200 http://bitbucket.org/pypy/pypy/changeset/814b36029e7a/ Log:'line_num' test diff --git a/pypy/module/_csv/test/test_reader.py b/pypy/module/_csv/test/test_reader.py --- a/pypy/module/_csv/test/test_reader

[pypy-commit] pypy default: More tests

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57500:cc7d7bec8896 Date: 2012-09-24 15:50 +0200 http://bitbucket.org/pypy/pypy/changeset/cc7d7bec8896/ Log:More tests diff --git a/pypy/module/_csv/interp_reader.py b/pypy/module/_csv/interp_reader.py --- a/pypy/module/_csv/interp_reader.py +++ b/pypy

[pypy-commit] pypy default: field_size_limit.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57501:cc581b16b5f0 Date: 2012-09-24 16:00 +0200 http://bitbucket.org/pypy/pypy/changeset/cc581b16b5f0/ Log:field_size_limit. diff --git a/pypy/module/_csv/__init__.py b/pypy/module/_csv/__init__.py --- a/pypy/module/_csv/__init__.py +++ b/pypy/module/_

[pypy-commit] pypy default: Finish the reader logic. Mostly untested so far, apart from the

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57498:47511fcae6a9 Date: 2012-09-24 15:32 +0200 http://bitbucket.org/pypy/pypy/changeset/47511fcae6a9/ Log:Finish the reader logic. Mostly untested so far, apart from the one test in test_reader. diff --git a/pypy/module/_csv/interp_reader.py

[pypy-commit] pypy default: in-progress

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57497:77e53dea1fe0 Date: 2012-09-23 17:28 +0200 http://bitbucket.org/pypy/pypy/changeset/77e53dea1fe0/ Log:in-progress diff --git a/pypy/module/_csv/__init__.py b/pypy/module/_csv/__init__.py --- a/pypy/module/_csv/__init__.py +++ b/pypy/module/_csv/__

[pypy-commit] pypy default: in-progress: writer

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57503:c8258d1b52d9 Date: 2012-09-24 16:54 +0200 http://bitbucket.org/pypy/pypy/changeset/c8258d1b52d9/ Log:in-progress: writer diff --git a/pypy/module/_csv/__init__.py b/pypy/module/_csv/__init__.py --- a/pypy/module/_csv/__init__.py +++ b/pypy/module

[pypy-commit] pypy default: Adding an RPython-level _csv module.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r57496:90f77542fc0e Date: 2012-09-23 14:35 +0200 http://bitbucket.org/pypy/pypy/changeset/90f77542fc0e/ Log:Adding an RPython-level _csv module. diff --git a/pypy/module/_csv/__init__.py b/pypy/module/_csv/__init__.py new file mode 100644 --- /dev/null

[pypy-commit] cffi default: Change the default dlopen() flags from RTLD_LAZY to RTLD_NOW.

2012-09-24 Thread arigo
Author: Armin Rigo Branch: Changeset: r968:0c8581ea7507 Date: 2012-09-24 11:00 +0200 http://bitbucket.org/cffi/cffi/changeset/0c8581ea7507/ Log:Change the default dlopen() flags from RTLD_LAZY to RTLD_NOW. Give access to all flags, for more precise control. diff --git a/c/_cffi_back