Re: [Cython] Type inference and C++

2012-07-24 Thread Stefan Behnel
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 > from libcpp.vector cimport vector > > def reverse_iteration_test(L): > v = new vector[int]() > for a in L: >

Re: [Cython] Type inference and C++

2012-07-24 Thread 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 >> from libcpp.vector cimport vector >> >> def reverse_iteration_test(L): >> v = new

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 >>> from libcpp.vector cimport vector >>> >>> def rever

Re: [Cython] Type inference and C++

2012-07-24 Thread 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 cython.operator cimport dereference as d from cython.operator cimport preincrement as incr from libcp

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 cython.operator cimport dereference as d > from cython.operator cimport p

Re: [Cython] Type inference and C++

2012-07-24 Thread Stefan Behnel
Vitja Makarov, 24.07.2012 18:42: > 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 cython.operator cimport dereference

[Cython] Bug, or changed array assignment in 0.17beta1?

2012-07-24 Thread Mike Zaletel
Hello All, The exact behavior of array assignment was never entirely clear to me, but I am certain the following behavior did not occur in 0.16: bug.pyx-- def foo(): cdef int i cdef int* p1 = [4, 4] cdef int* p2 = [5, 5] print "p1:", fo

Re: [Cython] Bug, or changed array assignment in 0.17beta1?

2012-07-24 Thread Stefan Behnel
Hi, thanks for the report. Mike Zaletel, 25.07.2012 00:40: > The exact behavior of array assignment was never entirely clear to me Yes, it's not entirely obvious. > but I am certain the following behavior did not occur in 0.16: > > bug.pyx-- > > def foo(): >cdef int i

Re: [Cython] Bug, or changed array assignment in 0.17beta1?

2012-07-24 Thread Stefan Behnel
Stefan Behnel, 25.07.2012 07:40: > Mike Zaletel, 25.07.2012 00:40: >> bug.pyx-- >> def foo(): >>cdef int i >>cdef int* p1 = [4, 4] >>cdef int* p2 = [5, 5] >> >>print "p1:", >>for i in range(2): >>print p1[i], >>print "\

Re: [Cython] Bug, or changed array assignment in 0.17beta1?

2012-07-24 Thread Stefan Behnel
Stefan Behnel, 25.07.2012 07:40: > Mike Zaletel, 25.07.2012 00:40: >> bug.pyx-- >> >> def foo(): >>cdef int i >>cdef int* p1 = [4, 4] >>cdef int* p2 = [5, 5] >> >>print "p1:", >>for i in range(2): >>print p1[i], >>print