[pypy-commit] pypy py3.3: Add more tests for dir(...) and .__dir__().

2014-08-03 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72678:0bfa6c3b47d3 Date: 2014-07-30 11:14 +0200 http://bitbucket.org/pypy/pypy/changeset/0bfa6c3b47d3/ Log:Add more tests for dir(...) and .__dir__(). diff --git a/pypy/module/__builtin__/test/test_dir.py b/pypy/module/__builtin__/test/test

[pypy-commit] pypy py3.3: Upgrade the warning from format(object, fmt_str) with non-empty format string.

2014-08-03 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72680:3b7ff7cf933b Date: 2014-08-02 11:25 +0200 http://bitbucket.org/pypy/pypy/changeset/3b7ff7cf933b/ Log:Upgrade the warning from format(object, fmt_str) with non-empty format string. diff --git a/pypy/module/__builtin__/test/test_

[pypy-commit] pypy py3.3: Implement custom __dir__ for tracebacks following cpython example.

2014-08-03 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72679:2a7237fb5557 Date: 2014-08-02 09:31 +0200 http://bitbucket.org/pypy/pypy/changeset/2a7237fb5557/ Log:Implement custom __dir__ for tracebacks following cpython example. diff --git a/pypy/interpreter/pytraceback.py b/pypy/interpreter/pyt

[pypy-commit] pypy py3.3: Fix test_open_default_encoding in lib-python/3/test/test_builtin.py.

2014-08-03 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72681:bd4891f611bd Date: 2014-08-02 15:49 +0200 http://bitbucket.org/pypy/pypy/changeset/bd4891f611bd/ Log:Fix test_open_default_encoding in lib-python/3/test/test_builtin.py. diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/i

[pypy-commit] pypy py3.3: Remove debugging help in the test.

2014-08-03 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72682:8e99253b142e Date: 2014-08-02 15:54 +0200 http://bitbucket.org/pypy/pypy/changeset/8e99253b142e/ Log:Remove debugging help in the test. diff --git a/pypy/module/__builtin__/test/test_dir.py b/pypy/module/__builtin__/test/test_dir.py -

[pypy-commit] pypy py3.3: Test cleanup.

2014-07-27 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72569:9d0edadd99a6 Date: 2014-07-27 13:35 +0200 http://bitbucket.org/pypy/pypy/changeset/9d0edadd99a6/ Log:Test cleanup. diff --git a/pypy/module/__builtin__/test/test_compile.py b/pypy/module/__builtin__/test/test_compile.py --- a/pypy/mod

[pypy-commit] pypy py3.3: Add a test for interaction between -O and optimize=0.

2014-07-27 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72570:fbd2b376181f Date: 2014-07-27 14:14 +0200 http://bitbucket.org/pypy/pypy/changeset/fbd2b376181f/ Log:Add a test for interaction between -O and optimize=0. diff --git a/pypy/module/__builtin__/test/test_compile.py b/pypy/module/__built

[pypy-commit] pypy py3.3: Implement docstring stripping for compile(..., optimize=2).

2014-07-27 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72561:17f769cdad0a Date: 2014-07-27 13:27 +0200 http://bitbucket.org/pypy/pypy/changeset/17f769cdad0a/ Log:Implement docstring stripping for compile(..., optimize=2). diff --git a/pypy/interpreter/astcompiler/codegen.py b/pypy/interpreter/a

[pypy-commit] pypy py3.3: Handle optimize=1 in calls to compile builtin function (remove asserts).

2014-07-27 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72553:52aa5e85cfdf Date: 2014-07-27 11:53 +0200 http://bitbucket.org/pypy/pypy/changeset/52aa5e85cfdf/ Log:Handle optimize=1 in calls to compile builtin function (remove asserts). diff --git a/pypy/interpreter/astcompiler/codegen.py

[pypy-commit] pypy py3.3: Refuse to sum bytes or bytearrays like cpython3 sum.

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72537:c4be82e0fa27 Date: 2014-07-26 18:08 +0200 http://bitbucket.org/pypy/pypy/changeset/c4be82e0fa27/ Log:Refuse to sum bytes or bytearrays like cpython3 sum. diff --git a/pypy/module/__builtin__/app_functional.py b/pypy/module/__builtin__

[pypy-commit] pypy py3.3: Additional checks related to pickling of zip iterators.

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72536:d26183fe9a2b Date: 2014-07-26 16:43 +0200 http://bitbucket.org/pypy/pypy/changeset/d26183fe9a2b/ Log:Additional checks related to pickling of zip iterators. diff --git a/pypy/module/__builtin__/test/test_zip_pickle.py b/pypy/module/__

[pypy-commit] pypy py3.3: Fixed test_construct_singletons for Ellipsis and NotImplemented as well, so now ellipsis and NotImplementedType can be constructed.

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72534:1c542d770ddb Date: 2014-07-26 16:25 +0200 http://bitbucket.org/pypy/pypy/changeset/1c542d770ddb/ Log:Fixed test_construct_singletons for Ellipsis and NotImplemented as well, so now ellipsis and NotImplementedType can be construc

[pypy-commit] pypy py3.3: Pickling of iterators produced by zip(seq, ...).

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72535:1f1711d14798 Date: 2014-07-26 16:38 +0200 http://bitbucket.org/pypy/pypy/changeset/1f1711d14798/ Log:Pickling of iterators produced by zip(seq, ...). diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builtin__/functio

[pypy-commit] pypy py3.3: Added a test for the situation when one of the iterators given to map has been already advanced (suggested by Armin Rigo).

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72517:88e3c7e587b4 Date: 2014-07-26 16:05 +0200 http://bitbucket.org/pypy/pypy/changeset/88e3c7e587b4/ Log:Added a test for the situation when one of the iterators given to map has been already advanced (suggested by Armin Rigo). dif

[pypy-commit] pypy py3.3: Fixed pickling of iterators produced by map(func, iter, ...).

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72516:b30c4330c8b3 Date: 2014-07-26 15:57 +0200 http://bitbucket.org/pypy/pypy/changeset/b30c4330c8b3/ Log:Fixed pickling of iterators produced by map(func, iter, ...). diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__buil

[pypy-commit] pypy py3.3: Fixed pickling of iterators produced by filter(func, iter).

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72512:6aecbffc27c8 Date: 2014-07-26 15:32 +0200 http://bitbucket.org/pypy/pypy/changeset/6aecbffc27c8/ Log:Fixed pickling of iterators produced by filter(func, iter). diff --git a/pypy/module/__builtin__/functional.py b/pypy/module/__builti

[pypy-commit] pypy py3.3: __dir__ is allowed to return a tuple (it's converted to list like in cpython3).

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72490:71501209fc12 Date: 2014-07-26 11:22 +0200 http://bitbucket.org/pypy/pypy/changeset/71501209fc12/ Log:__dir__ is allowed to return a tuple (it's converted to list like in cpython3). diff --git a/pypy/module/__builtin__/app_inspe

[pypy-commit] pypy py3.3: __dir__ is allowed to return any iterable like in cpython3.

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72492:72a3a7810d5c Date: 2014-07-26 12:05 +0200 http://bitbucket.org/pypy/pypy/changeset/72a3a7810d5c/ Log:__dir__ is allowed to return any iterable like in cpython3. diff --git a/pypy/module/__builtin__/app_inspect.py b/pypy/module/__built

[pypy-commit] pypy py3.3: NoneType can be constructed.

2014-07-26 Thread kvas
Author: Vasily Kuznetsov Branch: py3.3 Changeset: r72487:032296946827 Date: 2014-07-26 11:00 +0200 http://bitbucket.org/pypy/pypy/changeset/032296946827/ Log:NoneType can be constructed. diff --git a/pypy/module/__builtin__/test/test_construct_singletons.py b/pypy/module/__builtin__/test/te