[pypy-dev] HTMLParser compatibility with cPython 2.7.3

2012-06-18 Thread Robert Zaremba
Hi, I would like to import changes from: The problem is that HTMLParser from 2.7.2 is not lenient and likes to throw exceptions, when html document is not well formed: http://bugs.python.org/issue13987 This often involves exception from BeautifoulSoup, which gains great speed up when using

Re: [pypy-dev] HTMLParser compatibility with cPython 2.7.3

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 Robert Zaremba robert.zare...@zoho.com Hi, I would like to import changes from: The problem is that HTMLParser from 2.7.2 is not lenient and likes to throw exceptions, when html document is not well formed: http://bugs.python.org/issue13987 This often involves exception from

Re: [pypy-dev] new benchmark for pypy (without html version)

2012-06-18 Thread Leonardo Santagada
I know this sounds stupid but isn't using random and generating the benchmark data completely against the idea of a benchmark? This doesn't look like it takes the same time to run at each invocation so how do you compare different runs? On Fri, Jun 15, 2012 at 8:30 AM, Grzegorz Rudnicki

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Костя Лопухин
Hello! May I try? :) So I should: * reproduce the bug * make a branch of default PyPy * commit the test * commit the fix (hopefully) * send pull request 2012/6/18 Maciej Fijalkowski fij...@gmail.com: Hi This is a good start for someone wanting to explore contributing to pypy - 

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 Костя Лопухин kostia.lopu...@gmail.com Hello! May I try? :) Welcome! So I should: * reproduce the bug * make a branch of default PyPy * commit the test * commit the fix (hopefully) * send pull request Looks good. Feel free to hang on IRC (#pypy in irc.freenode.net) for fast

[pypy-dev] [cpyext] crash in PyThreadState_GetDict()

2012-06-18 Thread Stefan Behnel
Hi, I'm getting reproducible segfaults in the PyThreadState_GetDict() function with lxml. For that, it's enough to build the latest lxml github master version in PyPy and start the test runner. You'll also need the github master version of Cython for that (with contains the PyPy port). I use

Re: [pypy-dev] [cpyext] crash in PyThreadState_GetDict()

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 Stefan Behnel stefan...@behnel.de Hi, I'm getting reproducible segfaults in the PyThreadState_GetDict() function with lxml. Is it similar to https://bugs.pypy.org/issue1175 ? PyThread_{get, set, delete}_key_value should work without the GIL held For that, it's enough to build

Re: [pypy-dev] [cpyext] crash in PyThreadState_GetDict()

2012-06-18 Thread Stefan Behnel
Amaury Forgeot d'Arc, 18.06.2012 16:02: 2012/6/18 Stefan Behnel I'm getting reproducible segfaults in the PyThreadState_GetDict() function with lxml. Is it similar to https://bugs.pypy.org/issue1175 ? PyThread_{get, set, delete}_key_value should work without the GIL held No. As I said, it

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Armin Rigo
Hi Konstantin, On Mon, Jun 18, 2012 at 3:19 PM, Костя Лопухин kostia.lopu...@gmail.com wrote: May I try? :) Sure :-) A first quick remark: you should add a test in pypy's own tests, in pypy/objspace/std/test/test_newformat.py. Then run it with python pytest.py pypy/obj.../test_newformat.py.

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Костя Лопухин
Ah, I see, thank you! I tried added a test to lib-python/2.7/test/test_bool.py, but could not run it using untranslated pypy 2012/6/18 Armin Rigo ar...@tunes.org: Hi Konstantin, On Mon, Jun 18, 2012 at 3:19 PM, Костя Лопухин kostia.lopu...@gmail.com wrote: May I try? :) Sure :-)  A first

Re: [pypy-dev] [cpyext] crash in PyThreadState_GetDict()

2012-06-18 Thread Stefan Behnel
Amaury Forgeot d'Arc, 18.06.2012 16:51: 2012/6/18 Stefan Behnel Amaury Forgeot d'Arc, 18.06.2012 16:02: 2012/6/18 Stefan Behnel I'm getting reproducible segfaults in the PyThreadState_GetDict() function with lxml. Is it similar to https://bugs.pypy.org/issue1175 ? PyThread_{get, set,

Re: [pypy-dev] new benchmark for pypy (without html version)

2012-06-18 Thread Allan Douglas R. de Oliveira
I think it's just a matter of setting a fixed seed for the test. On Mon, Jun 18, 2012 at 10:09 AM, Leonardo Santagada santag...@gmail.com wrote: I know this sounds stupid but isn't using random and generating the benchmark data completely against the idea of a benchmark? This doesn't look like

[pypy-dev] CFFI release 0.1

2012-06-18 Thread Armin Rigo
Hi all, Announcing the release 0.1 of CFFI, the new Python interface to call C libraries done (mostly) by Maciek and myself: http://morepypy.blogspot.ch/2012/06/release-01-of-cffi.html A bientôt, Armin. ___ pypy-dev mailing list pypy-dev@python.org

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Костя Лопухин
Please see pull request - not sure if I should have added test in lib-python, because it tests the same thing, and is harder to run? https://bitbucket.org/pypy/pypy/pull-request/69/fix-issue-1180-implement-bool-formatting 2012/6/18 Костя Лопухин kostia.lopu...@gmail.com: Ah, I see, thank you! I

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Maciej Fijalkowski
On Mon, Jun 18, 2012 at 10:41 PM, Костя Лопухин kostia.lopu...@gmail.comwrote: Please see pull request - not sure if I should have added test in lib-python, because it tests the same thing, and is harder to run?

[pypy-dev] Internship and bug report

2012-06-18 Thread Leonard de HARO
Hello, I'm a french undergraduated CS. student currently doing an internship in Santigo's University under the supervision of Eric Tanter. I'm working on the meta JIT compiler provided in the pypy project, trying to document it's performance on different kind of interpreters. I started two weeks

Re: [pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Костя Лопухин
As Amaury Forgeot d'Arc noted here, https://bitbucket.org/pypy/pypy/pull-request/69/fix-issue-1180-implement-bool-formatting#comment-8635 in CPython there is no specific code for booleans, but an empty format_spec always delegate to str(). Is it better to try to achieve the same in PyPy? Or just