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

[Cython] Cython 0.17 beta 1 released

2012-07-23 Thread Stefan Behnel
Hello everyone, on behalf of the Cython project team, I'm proud to announce the release of our first beta of Cython 0.17. This is another major step forward in the development of the language that will make life easier for a lot of users, rounds up some rough edges of the compiler and adds (prelim

Re: [Cython] Type inference and C++

2012-07-23 Thread 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 as incr >> from libcpp.vector cimport vector >> >> def reverse_iteration_test(L): >> v

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[int]() > for a in L: > v.push_

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread Stefan Behnel
mark florisson, 23.07.2012 21:02: > Was this comment "Note that some > aspects of the memory views feature may not currently work in Python > 2.4.x. This is a known bug." in the release notes about the copying of > Python slice objects? Yes, about the failing tests. I removed it now. Stefan

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread mark florisson
On 23 July 2012 19:55, Stefan Behnel wrote: > mark florisson, 23.07.2012 20:07: >> On 23 July 2012 18:54, Stefan Behnel wrote: >>> mark florisson, 17.07.2012 12:20: On 17 July 2012 10:02, Stefan Behnel wrote: > mark florisson, 10.07.2012 11:20: >> Do you want _refactor_indexnode merge

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread Stefan Behnel
mark florisson, 23.07.2012 20:07: > On 23 July 2012 18:54, Stefan Behnel wrote: >> mark florisson, 17.07.2012 12:20: >>> On 17 July 2012 10:02, Stefan Behnel wrote: mark florisson, 10.07.2012 11:20: > Do you want _refactor_indexnode merged for this release? I was ok with it when

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread Stefan Behnel
mark florisson, 23.07.2012 20:38: > On 23 July 2012 19:07, mark florisson wrote: >> On 23 July 2012 18:54, Stefan Behnel wrote: >>> mark florisson, 17.07.2012 12:20: I'll have to renew that pull request using the final rebase. I'll then rebase the rest of my working branch on master. >>>

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread mark florisson
On 23 July 2012 19:07, mark florisson wrote: > On 23 July 2012 18:54, Stefan Behnel wrote: >> mark florisson, 17.07.2012 12:20: >>> On 17 July 2012 10:02, Stefan Behnel wrote: mark florisson, 10.07.2012 11:20: > Do you want _refactor_indexnode merged for this release? I was ok

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread mark florisson
On 23 July 2012 18:54, Stefan Behnel wrote: > mark florisson, 17.07.2012 12:20: >> On 17 July 2012 10:02, Stefan Behnel wrote: >>> mark florisson, 10.07.2012 11:20: Do you want _refactor_indexnode merged for this release? >>> >>> I was ok with it when I first skipped over it. It would be good

Re: [Cython] merging _refactor_indexnode branch

2012-07-23 Thread Stefan Behnel
mark florisson, 17.07.2012 12:20: > On 17 July 2012 10:02, Stefan Behnel wrote: >> mark florisson, 10.07.2012 11:20: >>> Do you want _refactor_indexnode merged for this release? >> >> I was ok with it when I first skipped over it. It would be good to give it >> another pair of eyeballs, but apart f

Re: [Cython] code generated for arguments of type "type"

2012-07-23 Thread Stefan Behnel
Stefan Behnel, 18.07.2012 09:09: > the following pull request tries to fix the fact that we currently generate > arguments of type "PyObject*" when someone spells out "type" for them. > > https://github.com/cython/cython/pull/126 > > That's mostly a problem in CPython's C-API, but also in some Nu