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 de

[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 a

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

2012-06-18 Thread Armin Rigo
Hi, On Mon, Jun 18, 2012 at 10:54 PM, Maciej Fijalkowski wrote: > It seems that you should make simpler tests (as > in there is no need for self.s and self.b I think, why not use str and bool > builtins?) Ah, it came from the other tests of test_newformat.py; but these use "self.s" instead of "s

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

2012-06-18 Thread Maciej Fijalkowski
On Mon, Jun 18, 2012 at 10:41 PM, Костя Лопухин wrote: > 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

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 Костя Лопухин : > Ah, I see, thank you! I tried added a test to >

[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 [email protected] h

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

2012-06-18 Thread Stefan Behnel
Stefan Behnel, 18.06.2012 19:04: > 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

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 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 it takes the sam

Re: [pypy-dev] A proposal about Numpypy missing functions

2012-06-18 Thread Daπid
Ok, I will start working on that. Hopefully, you will hear of me again. On Mon, Jun 18, 2012 at 11:01 AM, Maciej Fijalkowski wrote: > On Sat, Jun 16, 2012 at 4:03 PM, Daπid wrote: >> >> Hello, >> >> I have seen that there are some missing functions in numpypy that >> could be implemented, at lea

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 ? >>> "Py

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

2012-06-18 Thread Amaury Forgeot d'Arc
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, delete}_key_value sho

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 : > Hi Konstantin, > > On Mon, Jun 18, 2012 at 3:19 PM, Костя Лопухин > wrote: >> May I try? :) > > Sure :-)  A first quick remark: you should add a t

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, Костя Лопухин 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". In this way, you see t

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

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

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 Stefan Behnel > 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 the latest lxm

[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 thes

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

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 Костя Лопухин > 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 questions/answer

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 : > Hi > > This is a good start for someone wanting to explore contributing to pypy > - https://bugs.pypy.org/iss

[pypy-dev] A very easy bug for newcomers

2012-06-18 Thread Maciej Fijalkowski
Hi This is a good start for someone wanting to explore contributing to pypy - https://bugs.pypy.org/issue1180 I'll fix it if noone steps up :) Cheers, fijal ___ pypy-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-dev

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 wrote: >

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

2012-06-18 Thread Amaury Forgeot d'Arc
2012/6/18 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 g

[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 from

Re: [pypy-dev] A proposal about Numpypy missing functions

2012-06-18 Thread Maciej Fijalkowski
On Sat, Jun 16, 2012 at 4:03 PM, Daπid wrote: > Hello, > > I have seen that there are some missing functions in numpypy that > could be implemented, at least naïvely, very easily. An example of > this is zeros_like, as we have zeros and shape. Another example is the > random module, easy to port

Re: [pypy-dev] Pypy ARM backend and operating systems

2012-06-18 Thread Maciej Fijalkowski
On Sun, Jun 17, 2012 at 9:04 AM, Grzegorz Rudnicki wrote: > Which operating systems Pypy ARM backend will support? > > It will support Tizen? > > Grzegorz > Hi I think for now there is linux support, but nothing stops you from submitting patches (it should not be too hard) Cheers, fijal __