Re: [Cython] Should we monkey patch inspect.isfunction() ?

2013-08-31 Thread Vitja Makarov
2013/8/31 Stefan Behnel : > Hi, > > currently, this fails in Cython compiled code: > > def cyfunc(): pass > > import inspect > assert inspect.isfunction(cyfunc) > > There isn't really much of a reason why this *should* fail, except for the > implementation of inspect.isfunction(), which

Re: [Cython] Problem with final cdef methods

2013-08-28 Thread Vitja Makarov
2013/8/29 Stefan Behnel : > Hi, > > I noticed two problems with final cdef methods. When overriding a normal > cdef method with a final cdef method, you currently get a C compiler > warning about a call with the wrong 'self' type, and when you call them > before you declare them in your code, you g

Re: [Cython] How should be C-clobal deletion handled?

2013-05-26 Thread Vitja Makarov
2013/5/25 Robert Bradshaw > > On May 25, 2013 10:37 AM, "Vitja Makarov" wrote: > > > > > > > > > > 2013/5/25 Stefan Behnel > >> > >> Am 25.05.2013 08:34, schrieb Robert Bradshaw: > >> > On Thu, May 23, 2013 at 10:02

Re: [Cython] How should be C-clobal deletion handled?

2013-05-25 Thread Vitja Makarov
2013/5/25 Stefan Behnel > Am 25.05.2013 08:34, schrieb Robert Bradshaw: > > On Thu, May 23, 2013 at 10:02 PM, Vitja Makarov wrote: > >> Recently I've found that the following code causes segmentation fault: > >> > >> cdef object f > >> del f >

[Cython] How should be C-clobal deletion handled?

2013-05-23 Thread Vitja Makarov
Hi! Recently I've found that the following code causes segmentation fault: cdef object f del f print f So the question is: how should that work? global objects are implicitly initialized to None and no CF and no cf analysis is performed for it. So I see three options here: 1. prohibit cglobal

Re: [Cython] CF based type inference

2013-05-21 Thread Vitja Makarov
2013/5/21 mark florisson > On 21 May 2013 14:41, Vitja Makarov wrote: > > > > > > > > 2013/5/21 mark florisson > >> > >> On 21 May 2013 14:14, Vitja Makarov wrote: > >> > > >> > > >> > > >> > 2013/

Re: [Cython] CF based type inference

2013-05-21 Thread Vitja Makarov
2013/5/21 mark florisson > On 21 May 2013 14:14, Vitja Makarov wrote: > > > > > > > > 2013/5/21 mark florisson > >> > >> On 21 May 2013 11:26, Vitja Makarov wrote: > >> > Hi! > >> > > >> > Recently I've s

Re: [Cython] CF based type inference

2013-05-21 Thread Vitja Makarov
2013/5/21 mark florisson > On 21 May 2013 11:26, Vitja Makarov wrote: > > Hi! > > > > Recently I've started work on new type inference engine. Now it's almost > > ready and I want to discuss it. > > > > It works like this: first infer type for

[Cython] CF based type inference

2013-05-21 Thread Vitja Makarov
Hi! Recently I've started work on new type inference engine. Now it's almost ready and I want to discuss it. It works like this: first infer type for each assignment then for whole entry. It has some advantages over previous algorithm: - it handles assignment cycles, see test_swap() for example

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-23 Thread Vitja Makarov
2012/8/24 Vitja Makarov : > 2012/8/23 Vitja Makarov : >> 2012/8/23 Stefan Behnel : >>> Vitja Makarov, 23.08.2012 07:42: >>>> 2012/8/23 Vitja Makarov: >>>>> 2012/8/23 Vitja Makarov: >>>>>> 2012/8/23 Stefan Behnel: >>&g

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-23 Thread Vitja Makarov
2012/8/23 Vitja Makarov : > 2012/8/23 Stefan Behnel : >> Vitja Makarov, 23.08.2012 07:42: >>> 2012/8/23 Vitja Makarov: >>>> 2012/8/23 Vitja Makarov: >>>>> 2012/8/23 Stefan Behnel: >>>>>> Vitja Makarov, 23.08.2012 07:03: >>&g

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-23 Thread Vitja Makarov
2012/8/23 Stefan Behnel : > Vitja Makarov, 23.08.2012 07:42: >> 2012/8/23 Vitja Makarov: >>> 2012/8/23 Vitja Makarov: >>>> 2012/8/23 Stefan Behnel: >>>>> Vitja Makarov, 23.08.2012 07:03: >>>>>> 2012/8/23 Stefan Behnel: >>&g

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
2012/8/23 Vitja Makarov : > 2012/8/23 Vitja Makarov : >> 2012/8/23 Stefan Behnel : >>> Vitja Makarov, 23.08.2012 07:03: >>>> 2012/8/23 Stefan Behnel : >>>>> Vitja Makarov, 22.08.2012 22:34: >>>>>> 2012/8/23 Stefan Behnel: >>

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
2012/8/23 Vitja Makarov : > 2012/8/23 Stefan Behnel : >> Vitja Makarov, 23.08.2012 07:03: >>> 2012/8/23 Stefan Behnel : >>>> Vitja Makarov, 22.08.2012 22:34: >>>>> 2012/8/23 Stefan Behnel: >>>>>> Vitja Makarov, 22.08.2

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
2012/8/23 Stefan Behnel : > Vitja Makarov, 23.08.2012 07:03: >> 2012/8/23 Stefan Behnel : >>> Vitja Makarov, 22.08.2012 22:34: >>>> 2012/8/23 Stefan Behnel: >>>>> Vitja Makarov, 22.08.2012 22:11: >>>>>> I've found regression: &

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
2012/8/23 Stefan Behnel : > Vitja Makarov, 22.08.2012 22:34: >> 2012/8/23 Stefan Behnel: >>> Vitja Makarov, 22.08.2012 22:11: >>>> I've found regression: >>>> >>>> https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyre

Re: [Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
2012/8/23 Stefan Behnel : > Vitja Makarov, 22.08.2012 22:11: >> I've found regression: >> >> https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr/ > > Interesting. It's a Py2 list comprehension in a class body tha

[Cython] cython-devel-tests-pyregr regression

2012-08-22 Thread Vitja Makarov
I've found regression: https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr/ -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Jenkins problem

2012-08-22 Thread Vitja Makarov
2012/8/22 Stefan Behnel : > Vitja Makarov, 22.08.2012 06:51: >> I've a problem running jenknins job >> >> https://sage.math.washington.edu:8091/hudson/view/dev-vitek/job/cython-vitek-tests/137/BACKEND=c,PYVERSION=py27/console >> >> It says "No space l

[Cython] Jenkins problem

2012-08-21 Thread Vitja Makarov
Hi! I've a problem running jenknins job https://sage.math.washington.edu:8091/hudson/view/dev-vitek/job/cython-vitek-tests/137/BACKEND=c,PYVERSION=py27/console It says "No space left on device". Have something change there? -- vitja. ___ cython-devel

Re: [Cython] Type inference and C++

2012-07-24 Thread Vitja Makarov
2012/7/24 Stefan Behnel : > Vitja Makarov, 24.07.2012 14:48: >> 2012/7/24 Stefan Behnel: >>> Stefan Behnel, 24.07.2012 12:43: >>>> Vitja Makarov, 23.07.2012 07:13: >>>>> Here is part of original testcase: >>>>> >>>>> from

Re: [Cython] Type inference and C++

2012-07-24 Thread Vitja Makarov
2012/7/24 Stefan Behnel : > Stefan Behnel, 24.07.2012 12:43: >> Vitja Makarov, 23.07.2012 07:13: >>> Here is part of original testcase: >>> >>> from cython.operator cimport dereference as d >>> from cython.operator cimport preincrement as incr >

Re: [Cython] Type inference and C++

2012-07-23 Thread Vitja Makarov
2012/7/24 mark florisson : > On 23 July 2012 20:28, Vitja Makarov wrote: >> 2012/7/23 Vitja Makarov : >>> Here is part of original testcase: >>> >>> from cython.operator cimport dereference as d >>> from cython.operator cimport preincrement

Re: [Cython] Type inference and C++

2012-07-23 Thread Vitja Makarov
2012/7/23 Vitja Makarov : > Here is part of original testcase: > > from cython.operator cimport dereference as d > from cython.operator cimport preincrement as incr > from libcpp.vector cimport vector > > def reverse_iteration_test(L): > v = new vector

[Cython] Type inference and C++

2012-07-22 Thread Vitja Makarov
Here is part of original testcase: from cython.operator cimport dereference as d from cython.operator cimport preincrement as incr from libcpp.vector cimport vector def reverse_iteration_test(L): v = new vector[int]() for a in L: v.push_back(a) it = v.rbegin() while it !=

Re: [Cython] Local type inference, first success

2012-07-13 Thread Vitja Makarov
2012/7/13 Vitja Makarov : > Hi! > > I've been a little bit busy last months, now I'm back. > > I made first steps on implementing local type inference, TI for > assignments not only for their names. > Here is sample program that works: > > (_entry_split) vit

[Cython] Local type inference, first success

2012-07-13 Thread Vitja Makarov
Hi! I've been a little bit busy last months, now I'm back. I made first steps on implementing local type inference, TI for assignments not only for their names. Here is sample program that works: (_entry_split) vitja@mchome:~/work/cython-vitek-git/zzz$ cat tf.pyx # cython: infer_types.verbose=Tr

Re: [Cython] planning for 0.17

2012-06-27 Thread Vitja Makarov
2012/6/27 Stefan Behnel : > Vitja Makarov, 27.06.2012 06:29: >> I've updated T766's milstone from 0.16 to 0.17 as it didn't get into >> 0.16 release. > > Could you add it to the release notes then? > I think it's too minor chan

Re: [Cython] planning for 0.17

2012-06-26 Thread Vitja Makarov
2012/6/27 Stefan Behnel : > Hi, > > I'd like to get an idea of what's still open for 0.17. > > Mark mentioned some open memoryview issues on his list and I know that > there are still issues with PyPy, some of which could get fixed in a > reasonable time frame. Also, Jenkins isn't all that happy ye

Re: [Cython] CF based type inference

2012-05-10 Thread Vitja Makarov
2012/5/9 Robert Bradshaw : > On Wed, May 9, 2012 at 6:33 AM, Stefan Behnel wrote: >> mark florisson, 09.05.2012 15:18: >>> On 9 May 2012 14:16, Vitja Makarov wrote: >>>> from cython cimport typeof >>>> >>>> def foo(float[::1] a): >>>

Re: [Cython] Bug in print statement

2012-05-10 Thread Vitja Makarov
2012/5/9 Vitja Makarov : > 2012/5/9 Stefan Behnel : >> Vitja Makarov, 09.05.2012 18:31: >>> Del statement inference enabled pyregr.test_descr testcase and it SIGSEGVs. >>> Here is minimal example: >>> >>> import unittest >>> import

Re: [Cython] CF based type inference

2012-05-10 Thread Vitja Makarov
2012/5/10 Stefan Behnel : > Vitja Makarov, 08.05.2012 15:47: >> 2012/5/8 Stefan Behnel: >>> Vitja has rebased the type inference on the control flow, so I wonder if >>> this will enable us to properly infer this: >>> >>>  def partial_valid

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Robert Bradshaw : > On Wed, May 9, 2012 at 6:33 AM, Stefan Behnel wrote: >> mark florisson, 09.05.2012 15:18: >>> On 9 May 2012 14:16, Vitja Makarov wrote: >>>> from cython cimport typeof >>>> >>>> def foo(float[::1] a): >>>

Re: [Cython] Bug in print statement

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Vitja Makarov, 09.05.2012 18:31: >> Del statement inference enabled pyregr.test_descr testcase and it SIGSEGVs. >> Here is minimal example: >> >> import unittest >> import sys >> >> class Foo(unittest.TestCase): >>

[Cython] Bug in print statement

2012-05-09 Thread Vitja Makarov
Del statement inference enabled pyregr.test_descr testcase and it SIGSEGVs. Here is minimal example: import unittest import sys class Foo(unittest.TestCase): def test_file_fault(self): # Testing sys.stdout is changed in getattr... test_stdout = sys.stdout class StdoutG

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Vitja Makarov : > 2012/5/9 Vitja Makarov : >> 2012/5/9 mark florisson : >>> On 9 May 2012 13:39, Vitja Makarov wrote: >>>> 2012/5/9 Vitja Makarov : >>>>> 2012/5/9 Stefan Behnel : >>>>>> Stefan Behnel, 08.05.2012 14:24: &

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Vitja Makarov : > 2012/5/9 mark florisson : >> On 9 May 2012 13:39, Vitja Makarov wrote: >>> 2012/5/9 Vitja Makarov : >>>> 2012/5/9 Stefan Behnel : >>>>> Stefan Behnel, 08.05.2012 14:24: >>>>>> Vitja has rebased the type

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 mark florisson : > On 9 May 2012 13:39, Vitja Makarov wrote: >> 2012/5/9 Vitja Makarov : >>> 2012/5/9 Stefan Behnel : >>>> Stefan Behnel, 08.05.2012 14:24: >>>>> Vitja has rebased the type inference on the control flow >>>> >>

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Vitja Makarov : > 2012/5/9 Stefan Behnel : >> Stefan Behnel, 08.05.2012 14:24: >>> Vitja has rebased the type inference on the control flow >> >> On a related note, is this fixable now? >> >>  def test(): >>      x = 1    # inferred as int

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Stefan Behnel, 08.05.2012 14:24: >> Vitja has rebased the type inference on the control flow > > On a related note, is this fixable now? > >  def test(): >      x = 1    # inferred as int >      del x    # error: Deletion of non-Python, non-C++ object > > http://trac.cyth

Re: [Cython] callable() optimization

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Vitja Makarov, 09.05.2012 10:21: >> 2012/5/9 Stefan Behnel : >>> Vitja Makarov, 09.05.2012 09:43: >>>> 2012/5/9 Stefan Behnel : >>>>> Vitja Makarov, 08.05.2012 13:27: >>>>>> I've noticed regression

Re: [Cython] callable() optimization

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Vitja Makarov, 09.05.2012 09:43: >> 2012/5/9 Stefan Behnel : >>> Vitja Makarov, 08.05.2012 13:27: >>>> I've noticed regression related to callable() optimization. >>>> >>>> https://github.com/cython/cython/commit

Re: [Cython] CF based type inference

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Robert Bradshaw, 09.05.2012 00:12: >> On Tue, May 8, 2012 at 6:47 AM, Vitja Makarov wrote: >>> 2012/5/8 Stefan Behnel: >>>> Vitja has rebased the type inference on the control flow, so I wonder if >>>> this will enable

Re: [Cython] callable() optimization

2012-05-09 Thread Vitja Makarov
2012/5/9 Stefan Behnel : > Vitja Makarov, 08.05.2012 13:27: >> I've noticed regression related to callable() optimization. >> >> https://github.com/cython/cython/commit/a40112b0461eae5ab22fbdd07ae798d4a72ff523 >> >> class C: >>     pass >> print ca

Re: [Cython] 0.16.1

2012-05-08 Thread Vitja Makarov
2012/5/8 mark florisson : > On 8 May 2012 19:36, mark florisson wrote: >> Ok, so for the bugfix release 0.16.1 I propose that everyone cherry >> picks over its own fixes into the release branch (at least Stefan, >> since your fixes pertain to your newly merged branches and sometimes >> to the mast

Re: [Cython] CF based type inference

2012-05-08 Thread Vitja Makarov
2012/5/8 Stefan Behnel : > Hi, > > Vitja has rebased the type inference on the control flow, so I wonder if > this will enable us to properly infer this: > >  def partial_validity(): >    """ >    >>> partial_validity() >    ('Python object', 'double', 'str object') >    """ >    a = 1.0 >    b = a

[Cython] callable() optimization

2012-05-08 Thread Vitja Makarov
I've noticed regression related to callable() optimization. https://github.com/cython/cython/commit/a40112b0461eae5ab22fbdd07ae798d4a72ff523 class C: pass print callable(C()) It prints True optimized version checks ((obj)->ob_type->tp_call != NULL) condition that is True for both class and i

Re: [Cython] How do you trigger a jenkins build?

2012-05-07 Thread Vitja Makarov
2012/5/8 Stefan Behnel : > Vitja Makarov, 07.05.2012 17:08: >> I've noticed that old one URL hook doesn't work for me now. >> >> I tried to check "Build when a change is pushed to GitHub" > > That should work. > > >> and set "Jenki

Re: [Cython] 0.17

2012-05-07 Thread Vitja Makarov
2012/5/7 mark florisson : > On 6 May 2012 20:41, Matthew Brett wrote: >> Hi, >> >> On Sun, May 6, 2012 at 7:28 AM, mark florisson >> wrote: >>> Hey, >>> >>> I think we already have quite a bit of functionality (nearly) ready, >>> after merging some pending pull requests maybe it will be a good ti

[Cython] How do you trigger a jenkins build?

2012-05-07 Thread Vitja Makarov
I've noticed that old one URL hook doesn't work for me now. I tried to check "Build when a change is pushed to GitHub" and set "Jenkins Hook URL" to https://sage.math.washington.edu:8091/hudson/github-webhook/ That doesn't work. What is the right way? -- vitja. _

Re: [Cython] 0.17

2012-05-06 Thread Vitja Makarov
2012/5/6 Dag Sverre Seljebotn : > On 05/06/2012 04:28 PM, mark florisson wrote: >> >> Hey, >> >> I think we already have quite a bit of functionality (nearly) ready, >> after merging some pending pull requests maybe it will be a good time >> for a 0.17 release? I think it would be good to also docu

Re: [Cython] Cython 0.16 issue Windows with Mingw32

2012-04-24 Thread Vitja Makarov
2012/4/24 Stefan Behnel : > Stefan Behnel, 23.04.2012 20:28: >> Nathan Dunfield, 23.04.2012 17:58: >>> I've encountered the following issue with Cython 0.16 on Windows with >>> using the Mingw32 compiler (I'm using Python 3.2 here, but I don't think >>> that's the issue): >>> >>> $ python3 setup.py

Re: [Cython] Cython 0.16: "eval" problem

2012-04-23 Thread Vitja Makarov
2012/4/22 Vitja Makarov : > 2012/4/22 Nathan Dunfield : >> On Apr 22, 2012, at 1:22 PM, Vitja Makarov wrote: >>> Oops, it seems to be a problem with locals() dict creation. >> >> Yes it does.   The following variants of my original example both work: >> >>

Re: [Cython] Cython 0.16: "eval" problem

2012-04-22 Thread Vitja Makarov
2012/4/22 Nathan Dunfield : > On Apr 22, 2012, at 1:22 PM, Vitja Makarov wrote: >> Oops, it seems to be a problem with locals() dict creation. > > Yes it does.   The following variants of my original example both work: > > ## prob.pyx version 1 > > def cy_eval(s): >

Re: [Cython] Cython 0.16: "eval" problem

2012-04-22 Thread Vitja Makarov
2012/4/22 Nathan Dunfield : > With Cython 0.15, the following works with Python 2.7: > > ### start file: prob.pyx > > def f(x): >    cdef int* p >    return eval(x) > > ### end file > import pyximport; pyximport.install() import prob prob.f("5") > 5 > > but with Cython 0.16 it doesn'

Re: [Cython] Cython 0.16

2012-04-21 Thread Vitja Makarov
2012/4/21 Stefan Behnel : > mark florisson, 21.04.2012 15:02: >> We are pleased to announce a new version of Cython, 0.16 >> Many thanks to the many contributors of this release and to all bug >> reporters and supporting users! >> Enjoy! > > Thanks, Mark! > Cool, thanks! -- vitja. __

Re: [Cython] New early-binding concept [was: CEP1000]

2012-04-19 Thread Vitja Makarov
2012/4/19 Dag Sverre Seljebotn : > On 04/19/2012 10:35 AM, Vitja Makarov wrote: >> >> 2012/4/19 Dag Sverre Seljebotn: >>> >>> On 04/19/2012 08:41 AM, Stefan Behnel wrote: >>>> >>>> >>>> Dag Sverre Seljebotn, 18.04.2012 23:35: &g

Re: [Cython] New early-binding concept [was: CEP1000]

2012-04-19 Thread Vitja Makarov
2012/4/19 Dag Sverre Seljebotn : > On 04/19/2012 08:41 AM, Stefan Behnel wrote: >> >> Dag Sverre Seljebotn, 18.04.2012 23:35: >>> >>> from numpy import sqrt, sin >>> >>> cdef double f(double x): >>>     return sqrt(x * x) # or sin(x * x) >>> >>> Of course, here one could get the pointer in the modu

Re: [Cython] [cython-users] GSoC 2012

2012-04-02 Thread Vitja Makarov
2012/4/2 Stefan Behnel : > Vitja Makarov, 11.03.2012 09:51: >> 2012/3/11 Stefan Behnel: >>> mark florisson, 11.03.2012 07:44: >>>> - better type inference, that would be enabled by default and again >>>> handle thing like reassignments of variables and

Re: [Cython] 0.16 release

2012-03-30 Thread Vitja Makarov
2012/3/30 Robert Bradshaw : > On Fri, Mar 30, 2012 at 10:24 AM, mark florisson > wrote: > >> The release build looks good now, I'm thinking of pushing a second and >> final beta out there tomorrow. If anyone wants to get something in, >> now is the time to raise voice. > > Excellent. I personally

Re: [Cython] 0.16 release

2012-03-27 Thread Vitja Makarov
2012/2/27 Sébastien Sablé Sablé : > Great, thanks! > > > 2012/2/25 mark florisson >> >> 2012/2/24 Sébastien Sablé Sablé : >> > Hi, >> > >> > could you please also look at incorporating the following patch before >> > releasing 0.16? (if it has not already been merged) >> > >> > https://github.com/

Re: [Cython] sage.math problems?

2012-03-22 Thread Vitja Makarov
2012/3/22 Stefan Behnel : > William Stein, 22.03.2012 14:11: >> On Thu, Mar 22, 2012 at 9:04 AM, David Kirkby wrote: >>> On 22 March 2012 12:33, William Stein wrote: The usb device (for /levi) never appeared after I remotely rebooted sage.math. Physical access is thus probably requi

Re: [Cython] [cython-users] GSoC 2012

2012-03-11 Thread Vitja Makarov
2012/3/11 Stefan Behnel : > mark florisson, 11.03.2012 07:44: >> - better type inference, that would be enabled by default and again >> handle thing like reassignments of variables and fallbacks to the >> default object type. With entry caching Cython could build a database >> of types ((extension)

Re: [Cython] __cinit__ swallowing exceptions

2012-02-28 Thread Vitja Makarov
2012/2/28 Vitja Makarov : > 2012/2/28 mark florisson : >> On 28 February 2012 18:57, Vitja Makarov wrote: >>> 2012/2/28 mark florisson : >>>> On 28 February 2012 18:19, Lisandro Dalcin wrote: >>>>> This is something I really have no idea about how

Re: [Cython] __cinit__ swallowing exceptions

2012-02-28 Thread Vitja Makarov
2012/2/28 mark florisson : > On 28 February 2012 18:57, Vitja Makarov wrote: >> 2012/2/28 mark florisson : >>> On 28 February 2012 18:19, Lisandro Dalcin wrote: >>>> This is something I really have no idea about how to fix, so I'll ask >>>> any o

Re: [Cython] __cinit__ swallowing exceptions

2012-02-28 Thread Vitja Makarov
2012/2/28 mark florisson : > On 28 February 2012 18:19, Lisandro Dalcin wrote: >> This is something I really have no idea about how to fix, so I'll ask >> any of you to do it. >> >> How to reproduce. The quick example below should fail in the second to >> last line in test_cinit.py, but it succeed

Re: [Cython] cython tests and py3k hash randomization

2012-02-25 Thread Vitja Makarov
2012/2/24 Vitja Makarov : > 2012/2/24 Stefan Behnel : >> Vitja Makarov, 24.02.2012 06:24: >>> 2012/2/24 mark florisson : >>>> On 23 February 2012 20:52, Vitja Makarov wrote: >>>>> Recent py3k version has new feature "hash randomization" i

Re: [Cython] jenkins is down

2012-02-25 Thread Vitja Makarov
2012/2/25 Stefan Behnel : > Stefan Behnel, 24.02.2012 18:11: >> Vitja Makarov, 24.02.2012 17:56: >>> Jenkins app is down now. Before it got down it was raising exceptions. >> >> Ah, sorry, should have posted a short message. The machine it's running on >>

[Cython] jenkins is down

2012-02-24 Thread Vitja Makarov
Jenkins app is down now. Before it got down it was raising exceptions. Can some one restart jenkins? -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] cython tests and py3k hash randomization

2012-02-24 Thread Vitja Makarov
2012/2/24 Stefan Behnel : > Vitja Makarov, 24.02.2012 06:24: >> 2012/2/24 mark florisson : >>> On 23 February 2012 20:52, Vitja Makarov wrote: >>>> Recent py3k version has new feature "hash randomization" it solves >>>> some security issues. &

Re: [Cython] cython tests and py3k hash randomization

2012-02-23 Thread Vitja Makarov
2012/2/24 mark florisson : > On 23 February 2012 20:52, Vitja Makarov wrote: >> Recent py3k version has new feature "hash randomization" it solves >> some security issues. >> But has some drawbacks, for instance, dict.items() order is now >> unknown. So it

[Cython] cython tests and py3k hash randomization

2012-02-23 Thread Vitja Makarov
Recent py3k version has new feature "hash randomization" it solves some security issues. But has some drawbacks, for instance, dict.items() order is now unknown. So it breaks randomly some doctests that rely on exact order of dict items. vitja@mchome:~/python$ ./py3k/bin/python -c "print({'a':1,

Re: [Cython] 0.16 release

2012-02-23 Thread Vitja Makarov
2012/2/23 mark florisson : > On 23 February 2012 08:36, Vitja Makarov wrote: >> 2012/2/23 mark florisson : >>> On 23 February 2012 08:30, Vitja Makarov wrote: >>>> 2012/2/20 Vitja Makarov : >>>>> 2012/2/20 mark florisson : >>>>>> On

Re: [Cython] 0.16 release

2012-02-23 Thread Vitja Makarov
2012/2/23 Vitja Makarov : > 2012/2/23 mark florisson : >> On 23 February 2012 08:30, Vitja Makarov wrote: >>> 2012/2/20 Vitja Makarov : >>>> 2012/2/20 mark florisson : >>>>> On 19 February 2012 10:16, Vitja Makarov wrote: >>>>>> 201

Re: [Cython] 0.16 release

2012-02-23 Thread Vitja Makarov
2012/2/23 mark florisson : > On 23 February 2012 08:30, Vitja Makarov wrote: >> 2012/2/20 Vitja Makarov : >>> 2012/2/20 mark florisson : >>>> On 19 February 2012 10:16, Vitja Makarov wrote: >>>>> 2012/2/15 mark florisson : >>>>&g

Re: [Cython] 0.16 release

2012-02-23 Thread Vitja Makarov
2012/2/20 Vitja Makarov : > 2012/2/20 mark florisson : >> On 19 February 2012 10:16, Vitja Makarov wrote: >>> 2012/2/15 mark florisson : >>>> On 15 February 2012 15:45, mark florisson >>>> wrote: >>>>> On 14 February 2012 21:33, Robert Br

Re: [Cython] p3k pyregr tests problem

2012-02-22 Thread Vitja Makarov
2012/2/23 Vitja Makarov : > 2012/2/20 Vitja Makarov : >> 2012/2/20 Vitja Makarov : >>> 2012/2/20 Vitja Makarov : >>>> 2012/2/19 Stefan Behnel : >>>>> Vitja Makarov, 19.02.2012 12:14: >>>>>> I've noticed problems with py3k pyregr

Re: [Cython] p3k pyregr tests problem

2012-02-22 Thread Vitja Makarov
2012/2/20 Vitja Makarov : > 2012/2/20 Vitja Makarov : >> 2012/2/20 Vitja Makarov : >>> 2012/2/19 Stefan Behnel : >>>> Vitja Makarov, 19.02.2012 12:14: >>>>> I've noticed problems with py3k pyregr tests now it shows ~8K tests >>>>> i

Re: [Cython] p3k pyregr tests problem

2012-02-20 Thread Vitja Makarov
2012/2/20 Vitja Makarov : > 2012/2/20 Vitja Makarov : >> 2012/2/19 Stefan Behnel : >>> Vitja Makarov, 19.02.2012 12:14: >>>> I've noticed problems with py3k pyregr tests now it shows ~8K tests >>>> instead of 13K >>>> >>&

Re: [Cython] p3k pyregr tests problem

2012-02-20 Thread Vitja Makarov
2012/2/20 Vitja Makarov : > 2012/2/19 Stefan Behnel : >> Vitja Makarov, 19.02.2012 12:14: >>> I've noticed problems with py3k pyregr tests now it shows ~8K tests >>> instead of 13K >>> >>> Is that related to changes in cython or python? >&g

Re: [Cython] p3k pyregr tests problem

2012-02-20 Thread Vitja Makarov
2012/2/19 Stefan Behnel : > Vitja Makarov, 19.02.2012 12:14: >> I've noticed problems with py3k pyregr tests now it shows ~8K tests >> instead of 13K >> >> Is that related to changes in cython or python? >> >> https://sage.math.washington.edu:8091/hu

Re: [Cython] 0.16 release

2012-02-19 Thread Vitja Makarov
2012/2/20 mark florisson : > On 19 February 2012 10:16, Vitja Makarov wrote: >> 2012/2/15 mark florisson : >>> On 15 February 2012 15:45, mark florisson wrote: >>>> On 14 February 2012 21:33, Robert Bradshaw >>>> wrote: >>>>> On

Re: [Cython] p3k pyregr tests problem

2012-02-19 Thread Vitja Makarov
2012/2/19 Vitja Makarov : > Hi! > > I've noticed problems with py3k pyregr tests now it shows ~8K tests > instead of 13K > > Is that related to changes in cython or python? > > https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr/BACKEND=c,PYV

[Cython] p3k pyregr tests problem

2012-02-19 Thread Vitja Makarov
Hi! I've noticed problems with py3k pyregr tests now it shows ~8K tests instead of 13K Is that related to changes in cython or python? https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr/BACKEND=c,PYVERSION=py3k/ -- vitja. ___

Re: [Cython] 0.16 release

2012-02-19 Thread Vitja Makarov
gt;>>> wrote: >>>>> On Tue, Feb 14, 2012 at 7:49 AM, mark florisson >>>>> wrote: >>>>>> On 14 February 2012 07:07, Robert Bradshaw >>>>>> wrote: >>>>>>> On Sun, Feb 12, 2012 at 12:53 PM, Vitja Mak

Re: [Cython] overwriting pull requests and the related discussion

2012-02-15 Thread Vitja Makarov
2012/2/15 mark florisson : > On 15 February 2012 09:37, Stefan Behnel wrote: >> Hi, >> >> I'd like to suggest that instead of overwriting pull requests and all of >> their comments on github by pushing replaced commits over them, it would be >> better to keep any existing discussions accessible by

Re: [Cython] 0.16 release

2012-02-12 Thread Vitja Makarov
2012/2/12 Vitja Makarov : > 2012/2/11 Robert Bradshaw : >> All of Sage passes except for one test: >> >> sage -t  devel/sage/sage/misc/sageinspect.py >> ** >> File >> "/levi/scratch/r

Re: [Cython] Bug in Cython producing incorrect C code

2012-02-12 Thread Vitja Makarov
2012/2/12 mark florisson : > On 12 February 2012 14:06, Vitja Makarov wrote: >> 2012/2/4 Vitja Makarov : >>> 2012/1/26 mark florisson : >>>> On 26 January 2012 19:27, Stefan Behnel wrote: >>>>> mark florisson, 26.01.2012 20:15: >>>>>&

Re: [Cython] Bug in Cython producing incorrect C code

2012-02-12 Thread Vitja Makarov
2012/2/4 Vitja Makarov : > 2012/1/26 mark florisson : >> On 26 January 2012 19:27, Stefan Behnel wrote: >>> mark florisson, 26.01.2012 20:15: >>>> On 26 January 2012 18:53, Stefan Behnel wrote: >>>>> mark florisson, 26.01.2012 16:20: >>>>&g

Re: [Cython] 0.16 release

2012-02-11 Thread Vitja Makarov
2012/2/11 Robert Bradshaw : > All of Sage passes except for one test: > > sage -t  devel/sage/sage/misc/sageinspect.py > ** > File > "/levi/scratch/robertwb/hudson/sage-4.8/devel/sage-main/sage/misc/sageinspect.py", > line 970: >

Re: [Cython] 0.16 release

2012-02-04 Thread Vitja Makarov
2012/1/31 Robert Bradshaw : > On Sat, Jan 28, 2012 at 8:05 AM, Vitja Makarov > wrote: >> 2012/1/26 Jason Grout : >>> On 1/25/12 11:39 AM, Robert Bradshaw wrote: >>>> >>>> install >>>> >>>> https://sage.math.washington.edu:

Re: [Cython] Bug in Cython producing incorrect C code

2012-02-03 Thread Vitja Makarov
2012/1/26 mark florisson : > On 26 January 2012 19:27, Stefan Behnel wrote: >> mark florisson, 26.01.2012 20:15: >>> On 26 January 2012 18:53, Stefan Behnel wrote: mark florisson, 26.01.2012 16:20: > I think this problem can trivially be solved by creating a ProxyNode > that should ne

[Cython] Bug in multiplied tuple optimization

2012-01-29 Thread Vitja Makarov
Investigating sage-tests segfaults I found that this code causes sigsegv: def foo(): return (0,) * len('abc') foo() -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/29 Stefan Behnel : > Vitja Makarov, 28.01.2012 20:58: >> 2012/1/28 mark florisson : >>> On 28 January 2012 19:41, Vitja Makarov wrote: >>>> 2012/1/28 Stefan Behnel : >>>>> Stefan Behnel, 27.01.2012 09:02: >>>>>> any ex

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 mark florisson : > On 28 January 2012 19:48, mark florisson wrote: >> On 28 January 2012 19:41, Vitja Makarov wrote: >>> 2012/1/28 Stefan Behnel : >>>> Stefan Behnel, 27.01.2012 09:02: >>>>> any exception *propagation* is >>>>

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 mark florisson : > On 28 January 2012 19:41, Vitja Makarov wrote: >> 2012/1/28 Stefan Behnel : >>> Stefan Behnel, 27.01.2012 09:02: >>>> any exception *propagation* is >>>> still substantially slower than necessary, and that's a general

Re: [Cython] AddTraceback() slows down generators

2012-01-28 Thread Vitja Makarov
2012/1/28 Stefan Behnel : > Stefan Behnel, 27.01.2012 09:02: >> any exception *propagation* is >> still substantially slower than necessary, and that's a general issue. > > Here's a general take on a code object cache for exception propagation. > > https://github.com/scoder/cython/commit/ad18e0208

Re: [Cython] 0.16 release

2012-01-28 Thread Vitja Makarov
2012/1/26 Jason Grout : > On 1/25/12 11:39 AM, Robert Bradshaw wrote: >> >> install >> >> https://sage.math.washington.edu:8091/hudson/view/ext-libs/job/sage-build/lastSuccessfulBuild/artifact/cython-devel.spkg >> by downloading it and running "sage -i cython-devel.spkg" > > > > In fact, you could

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Vitja Makarov
2012/1/27 Stefan Behnel : > Vitja Makarov, 27.01.2012 12:02: >> I'll push my patch to upstream. > > Please do. > https://github.com/cython/cython/commit/7ae9d5b9a66bb586cd0d03b3aa137eb762602087 > >> One question: does it close the ticket or not? > > No. >

Re: [Cython] AddTraceback() slows down generators

2012-01-27 Thread Vitja Makarov
2012/1/27 Stefan Behnel : > Stefan Behnel, 26.01.2012 21:57: >> Vitja Makarov, 26.01.2012 21:19: >>> 2012/1/27 Stefan Behnel: >>>> Robert Bradshaw, 21.01.2012 23:09: >>>>> On Sat, Jan 21, 2012 at 10:50 AM, Stefan Behnel wrote: >>>>>>

  1   2   3   4   >