Re: [Cython] PEP 3135 -- New Super

2011-07-05 Thread Vitja Makarov
2011/7/5 Stefan Behnel : > Vitja Makarov, 05.07.2011 09:17: >> >> 2011/7/5 Stefan Behnel: >>> >>> Vitja Makarov, 05.07.2011 08:21: >>>> >>>> I was thinking about implementing new super() with no arguments. >>> >>> http://tr

Re: [Cython] PEP 3135 -- New Super

2011-07-06 Thread Vitja Makarov
2011/7/6 Stefan Behnel : > Stefan Behnel, 05.07.2011 10:04: >> >> Vitja Makarov, 05.07.2011 09:17: >>> >>> 2011/7/5 Stefan Behnel: >>>> >>>> Vitja Makarov, 05.07.2011 08:21: >>>>> >>>>> I was thinking about i

Re: [Cython] PEP 3135 -- New Super

2011-07-06 Thread Vitja Makarov
2011/7/6 Stefan Behnel : > Vitja Makarov, 06.07.2011 09:05: >> >> 2011/7/6 Stefan Behnel: >>> >>> Stefan Behnel, 05.07.2011 10:04: >>>> >>>> Vitja Makarov, 05.07.2011 09:17: >>>>> >>>>> 2011/7/5 Stefan Behn

[Cython] Speedup hudson job with ccache

2011-07-06 Thread Vitja Makarov
I tried to speedup runtests with ccache How to run: CYTHON_RUNTESTS_CCACHE="ccache" python runtests.py Running 'CYTHON_RUNTESTS_CCACHE="ccache" python runtests.py --no-cpp' first time takes 490 seconds on my PC, second time is 214, speed up is 2.2x, cache size is 16MB https://github.com/vitek/

Re: [Cython] Speedup hudson job with ccache

2011-07-06 Thread Vitja Makarov
2011/7/7 Stefan Behnel > Robert Bradshaw, 06.07.2011 21:32: > > We should get ccache on sage.math to start using it on hudson. >> > > It's just a single binary when installed. I have a copy in my ~/ccache/bin. > Changing the Jenkins jobs now. > > Is that already used? -- vitja. __

Re: [Cython] Speedup hudson job with ccache

2011-07-06 Thread Vitja Makarov
2011/7/7 Stefan Behnel > Vitja Makarov, 07.07.2011 08:32: > >> 2011/7/7 Stefan Behnel >> >> Robert Bradshaw, 06.07.2011 21:32: >>> >>> We should get ccache on sage.math to start using it on hudson. >>> >>>> >>>> >>

Re: [Cython] Speedup hudson job with ccache

2011-07-07 Thread Vitja Makarov
2011/7/7 Vitja Makarov > > > 2011/7/7 Stefan Behnel > >> Vitja Makarov, 07.07.2011 08:32: >> >>> 2011/7/7 Stefan Behnel >>> >>> Robert Bradshaw, 06.07.2011 21:32: >>>> >>>> We should get ccache on sage.math to sta

Re: [Cython] Speedup hudson job with ccache

2011-07-07 Thread Vitja Makarov
2011/7/7 Stefan Behnel : > Stefan Behnel, 07.07.2011 09:29: >> >> Vitja Makarov, 07.07.2011 08:54: >>> >>> 2011/7/7 Stefan Behnel >>> >>>> Vitja Makarov, 07.07.2011 08:32: >>>> >>>>> 2011/7/7 Stefan Behnel >

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread Vitja Makarov
2011/7/6 Vitja Makarov : > 2011/7/6 Stefan Behnel : >> Vitja Makarov, 06.07.2011 09:05: >>> >>> 2011/7/6 Stefan Behnel: >>>> >>>> Stefan Behnel, 05.07.2011 10:04: >>>>> >>>>> Vitja Makarov, 05.07.2011 09:17: >

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread Vitja Makarov
2011/7/7 mark florisson > On 6 July 2011 10:01, Vitja Makarov wrote: > > 2011/7/6 Stefan Behnel : > >> Vitja Makarov, 06.07.2011 09:05: > >>> > >>> 2011/7/6 Stefan Behnel: > >>>> > >>>> Stefan Behnel, 05.07.2011 10:04: >

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread Vitja Makarov
2011/7/8 mark florisson > On 7 July 2011 22:15, Vitja Makarov wrote: > > > > > > 2011/7/7 mark florisson > >> > >> On 6 July 2011 10:01, Vitja Makarov wrote: > >> > 2011/7/6 Stefan Behnel : > >> >> Vitja M

Re: [Cython] PEP 3135 -- New Super

2011-07-07 Thread Vitja Makarov
2011/7/8 mark florisson > On 7 July 2011 22:39, Vitja Makarov wrote: > > > > > > 2011/7/8 mark florisson > >> > >> On 7 July 2011 22:15, Vitja Makarov wrote: > >> > > >> > > >> > 2011/7/7 mark florisson > >&

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/6 Stefan Behnel > Vitja Makarov, 06.07.2011 09:05: > > 2011/7/6 Stefan Behnel: >> >>> Stefan Behnel, 05.07.2011 10:04: >>> >>>> >>>> Vitja Makarov, 05.07.2011 09:17: >>>> >>>>> >>>>> 2011/7

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/12 Stefan Behnel > > Vitja Makarov, 12.07.2011 09:46: >> >> About cdef classes: probably it's better to >> transform super().method(...) into direct form, e.g. BaseClass.method(self, >> ...) > > Except when it doesn't work. ;) > >   A >

Re: [Cython] PEP 3135 -- New Super

2011-07-12 Thread Vitja Makarov
2011/7/12 Stefan Behnel : > mark florisson, 12.07.2011 12:11: >> >> On 12 July 2011 11:46, Vitja Makarov wrote: >>> >>> 2011/7/12 Stefan Behnel >>>> >>>> Vitja Makarov, 12.07.2011 09:46: >>>>> >>>>> About cde

[Cython] Strange cimport behaviour

2011-07-15 Thread Vitja Makarov
Hi! I've found strange bug. In my example cimport misses "fcntl.h" include: ((c2f2e12...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ cat ./fff.pyx cimport posix.unistd cimport posix.fcntl print posix.fcntl.O_RDWR ((c2f2e12...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ make fff.so /usr//bin

Re: [Cython] Strange cimport behaviour

2011-07-15 Thread Vitja Makarov
15 июля 2011 г. 23:32 пользователь Vitja Makarov написал: > Hi! > > I've found strange bug. In my example cimport misses "fcntl.h" include: > > ((c2f2e12...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ cat ./fff.pyx > cimport posix.unistd > cimport posi

[Cython] How to define C-consts in python module scope

2011-07-18 Thread Vitja Makarov
cdef enum: EV_READ = 1 EV_WRITE = 2 Is there a way to put this constants into module dict? I want to access this constants from pure python code, I tried this way: globals()['EV_READ'] = EV_READ globals()['EV_WRITE'] = EV_WRITE But I don't like it, is there any other way? -- vitja.

Re: [Cython] How to define C-consts in python module scope

2011-07-18 Thread Vitja Makarov
2011/7/18 Lisandro Dalcin : > On 18 July 2011 06:38, Vitja Makarov wrote: >> cdef enum: >>     EV_READ  = 1 >>     EV_WRITE = 2 >> >> Is there a way to put this constants into module dict? >> I want to access this constants from pure python code, I t

Re: [Cython] How to define C-consts in python module scope

2011-07-18 Thread Vitja Makarov
2011/7/18 Chris Colbert : > > > On Mon, Jul 18, 2011 at 12:14 PM, Lisandro Dalcin wrote: >> >> On 18 July 2011 06:38, Vitja Makarov wrote: >> > cdef enum: >> >     EV_READ  = 1 >> >     EV_WRITE = 2 >> > >> > Is there a way

Re: [Cython] How to define C-consts in python module scope

2011-07-18 Thread Vitja Makarov
2011/7/18 Robert Bradshaw : > Trevor King and I discussed this quite a while back, but every time I > got around to looking at his code (I don't think he ever created a > formal pull request) something came up. The idea was that we could > support cpdef structs and extern functions as well. > That

Re: [Cython] How to define C-consts in python module scope

2011-07-18 Thread Vitja Makarov
2011/7/19 Robert Bradshaw : > On Mon, Jul 18, 2011 at 10:24 PM, Vitja Makarov > wrote: >> 2011/7/18 Robert Bradshaw : >>> Trevor King and I discussed this quite a while back, but every time I >>> got around to looking at his code (I don't think he eve

Re: [Cython] How to define C-consts in python module scope

2011-07-19 Thread Vitja Makarov
2011/7/20 Lisandro Dalcin : > On 19 July 2011 02:24, Vitja Makarov wrote: >> 2011/7/18 Robert Bradshaw : >>> Trevor King and I discussed this quite a while back, but every time I >>> got around to looking at his code (I don't think he ever created a >>> fo

Re: [Cython] Cython 0.15 release

2011-07-20 Thread Vitja Makarov
2011/7/20 mark florisson : > On 20 July 2011 11:47, Stefan Behnel wrote: >> mark florisson, 20.07.2011 11:40: >>> >>> On 20 July 2011 11:26, Stefan Behnel wrote: mark florisson, 20.07.2011 10:51: > > On 20 July 2011 02:32, Robert Bradshaw wrote: >> >> We're long overdue f

Re: [Cython] Strange cimport behaviour

2011-07-20 Thread Vitja Makarov
2011/7/16 Lars Buitinck : > 2011/7/15 Vitja Makarov : >> I've found strange bug. In my example cimport misses "fcntl.h" include: >> >> ((c2f2e12...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ cat ./fff.pyx >> cimport posix.unistd >> ci

Re: [Cython] Strange cimport behaviour

2011-07-20 Thread Vitja Makarov
2011/7/21 Robert Bradshaw : > On Wed, Jul 20, 2011 at 9:27 PM, Vitja Makarov > wrote: >> 2011/7/16 Lars Buitinck : >>> 2011/7/15 Vitja Makarov : >>>> I've found strange bug. In my example cimport misses "fcntl.h" include: >>>> >>

Re: [Cython] Strange cimport behaviour

2011-07-21 Thread Vitja Makarov
2011/7/21 Robert Bradshaw : > On Wed, Jul 20, 2011 at 10:30 PM, Robert Bradshaw > wrote: >> On Wed, Jul 20, 2011 at 9:40 PM, Vitja Makarov >> wrote: >>> 2011/7/21 Robert Bradshaw : >>>> On Wed, Jul 20, 2011 at 9:27 PM, Vitja Makarov >>>> wrot

Re: [Cython] PEP 3135 -- New Super

2011-07-21 Thread Vitja Makarov
2011/7/21 Stefan Behnel : > Robert Bradshaw, 21.07.2011 11:21: >> >> On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote: >>> >>> 2011/7/8 mark florisson >>>> >>>> In descr_get you create and return a new CyFunction with a __self__ >&g

Re: [Cython] PEP 3135 -- New Super

2011-07-21 Thread Vitja Makarov
2011/7/22 Stefan Behnel : > Vitja Makarov, 21.07.2011 20:57: >> >> 2011/7/21 Stefan Behnel: >>> >>> Robert Bradshaw, 21.07.2011 11:21: >>>> >>>> On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote: >>>>> >>>

Re: [Cython] PEP 3135 -- New Super

2011-07-22 Thread Vitja Makarov
2011/7/21 Stefan Behnel : > Robert Bradshaw, 21.07.2011 11:21: >> >> On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote: >>> >>> 2011/7/8 mark florisson >>>> >>>> In descr_get you create and return a new CyFunction with a __self__ >&g

Re: [Cython] Utility Codes and templates

2011-07-22 Thread Vitja Makarov
2011/7/23 Robert Bradshaw : > On Fri, Jul 22, 2011 at 1:39 PM, mark florisson > wrote: >> On 22 July 2011 22:05, Robert Bradshaw wrote: >>> On Fri, Jul 22, 2011 at 3:12 AM, mark florisson >>> wrote: For my work on the _memview branch (and also on fused types) I noticed that UtilityCode

Re: [Cython] Cython 0.15 release

2011-07-24 Thread Vitja Makarov
2011/7/25 최원준 : > Can I test the generators? > > Sure, generators support is in master already: https://github.com/cython/cython -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Build failed in Jenkins: cython-devel-sdist #522

2011-07-24 Thread Vitja Makarov
2011/7/25 Hudson on sage-math : > See > > -- > Started by user scoder > Building on master > Checkout:workspace / >

Re: [Cython] Utility Codes and templates

2011-07-24 Thread Vitja Makarov
2011/7/23 Robert Bradshaw : > On Fri, Jul 22, 2011 at 3:12 AM, mark florisson > wrote: >> For my work on the _memview branch (and also on fused types) I noticed >> that UtilityCodes started weighing heavily on me in their current >> form, so I wrote a little loader in the _memview branch: >> >> ht

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Vitja Makarov
2011/7/25 Stefan Behnel : > Vitja Makarov, 25.07.2011 08:41: >> >> 2011/7/23 Robert Bradshaw: >>> >>> On Fri, Jul 22, 2011 at 3:12 AM, mark florisson >>>  wrote: >>>> >>>> For my work on the _memview branch (and also on fused type

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Vitja Makarov
2011/7/26 Robert Bradshaw : > On Mon, Jul 25, 2011 at 3:07 AM, mark florisson > wrote: >> On 25 July 2011 12:00, Stefan Behnel wrote: >>> Vitja Makarov, 25.07.2011 10:25: >>>> >>>> 2011/7/25 Stefan Behnel: >>>>> >>>>&g

Re: [Cython] Should we drop support for CPython 2.3? (and maybe even 2.4?)

2011-07-27 Thread Vitja Makarov
2011/7/27 Stefan Behnel : > Hi, > > quick question before raising a poll on the users mailing list. > > Would anyone mind dropping support for CPython 2.3? > > 1) it's long out of maintenance, even the last security release dates back > to early 2008 > > 2) there have been seven main releases of CP

Re: [Cython] Should we drop support for CPython 2.3? (and maybe even 2.4?)

2011-07-27 Thread Vitja Makarov
2011/7/28 Stefan Behnel : > Robert Bradshaw, 27.07.2011 20:28: >> >> Yes, that is a good point, though if it's (really) easy, I'd rather >> say "this is the last release supporting 2.3" rather than "oh, btw, we >> dropped support for 2.3." > > I wouldn't mind either way. Let's see what the users po

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-07-28 Thread Vitja Makarov
2011/7/29 Stefan Behnel : > [moving this here from cython-users] > > Nikolaus Rath, 13.06.2011 16:59: >> >> Stefan Behnel writes: >>> >>> Nikolaus Rath, 13.06.2011 01:18: Stefan Behnel writes: > > Nikolaus Rath, 03.06.2011 23:24: >> >> Cython 0.14 generated code triggers l

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-07-28 Thread Vitja Makarov
2011/7/29 Vitja Makarov : > 2011/7/29 Stefan Behnel : >> [moving this here from cython-users] >> >> Nikolaus Rath, 13.06.2011 16:59: >>> >>> Stefan Behnel writes: >>>> >>>> Nikolaus Rath, 13.06.2011 01:18: >>>>

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-07-29 Thread Vitja Makarov
2011/7/29 Stefan Behnel : > Vitja Makarov, 29.07.2011 08:38: >> >> 2011/7/29 Vitja Makarov: >>> >>> 2011/7/29 Stefan Behnel: >>>> >>>> Nikolaus Rath, 13.06.2011 16:59: >>>>> >>>>> $ gcc -pthread -fno-stric

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-07-29 Thread Vitja Makarov
2011/7/29 Stefan Behnel : > Vitja Makarov, 29.07.2011 10:08: >> >> this issue isn't critical and even isn't a bug at all. > > Agreed. It's nothing that needs to be done for 0.15. I just thought you > might be interested. :D > Yeah, I tried to do this onc

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-07-29 Thread Vitja Makarov
2011/7/29 Stefan Behnel : > Vitja Makarov, 29.07.2011 10:44: >> >> 2011/7/29 Stefan Behnel: >>> >>> Vitja Makarov, 29.07.2011 10:08: >>>> >>>> this issue isn't critical and even isn't a bug at all. >>> >>>

Re: [Cython] Vitja's CyFunction branch

2011-07-30 Thread Vitja Makarov
2011/7/30 Stefan Behnel : > Hi, > > I wonder what we should do with Vitja's CyFunction branch. He mentioned > issues with it in the past (I remember that there was one specific changeset > that he considered questionable), and it seems that we found several ways to > extend the function support bey

Re: [Cython] Cython 0.15 release

2011-07-30 Thread Vitja Makarov
2011/7/20 Robert Bradshaw : > We're long overdue for a release, and this week would be a good one > for me to push one out. Hudson > https://sage.math.washington.edu:8091/hudson is looking in pretty good > shape, and though I know we've got a big pile of stuff currently in > progress, we've also go

Re: [Cython] problematic code in C++ pyregr tests

2011-07-31 Thread Vitja Makarov
2011/7/31 Stefan Behnel : > Hi, > > I noticed a couple of problems in the latest pyregr test run for py3k. > > https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr-py3k-cpp/951/consoleFull > > 1) test_contextlib.cpp:16926: warning: deprecated conversion from string > constant

[Cython] Entry.is_arg question

2011-07-31 Thread Vitja Makarov
What is the meaning of Entry.is_arg flag? For generic python arguments it's set to 0, it makes it very tricky to determinate whether entry is argument: https://github.com/cython/cython/blob/master/Cython/Compiler/FlowControl.py#L515 Can we have is_args flag set for all kind of args? And have all

[Cython] OpenMP problem

2011-07-31 Thread Vitja Makarov
I've tried openmp support with simple example: from cython.parallel cimport prange def mul(values): ret = 1 for i in prange(values): ret *= i return ret And cython crashes: ((b04e040...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ make mul.so /usr//bin/python ../cython.py

Re: [Cython] Cython 0.15 release candidate

2011-08-01 Thread Vitja Makarov
2011/8/2 Robert Bradshaw : > On Mon, Aug 1, 2011 at 3:04 PM, Arfrever Frehtes Taifersar Arahesis > wrote: >> 2011-07-31 09:45:15 Robert Bradshaw napisał(a): >>> On Thu, Jul 21, 2011 at 4:14 PM, Robert Bradshaw >>> wrote: >>> > Cython has seen an enormous amount of development since 0.14.1. If you

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-02 Thread Vitja Makarov
2011/7/29 Stefan Behnel : > Vitja Makarov, 29.07.2011 10:55: >> >> 2011/7/29 Stefan Behnel: >>> >>> Vitja Makarov, 29.07.2011 10:44: >>>> >>>> 2011/7/29 Stefan Behnel: >>>>> >>>>> Vitja Makarov

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-02 Thread Vitja Makarov
2011/8/2 Vitja Makarov : > 2011/7/29 Stefan Behnel : >> Vitja Makarov, 29.07.2011 10:55: >>> >>> 2011/7/29 Stefan Behnel: >>>> >>>> Vitja Makarov, 29.07.2011 10:44: >>>>> >>>>> 2011/7/29 Stefan Behnel: >>>

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-02 Thread Vitja Makarov
2011/8/2 Vitja Makarov : > 2011/8/2 Vitja Makarov : >> 2011/7/29 Stefan Behnel : >>> Vitja Makarov, 29.07.2011 10:55: >>>> >>>> 2011/7/29 Stefan Behnel: >>>>> >>>>> Vitja Makarov, 29.07.2011 10:44: >>>&g

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-03 Thread Vitja Makarov
2011/8/2 Vitja Makarov : > 2011/8/2 Vitja Makarov : >> 2011/8/2 Vitja Makarov : >>> 2011/7/29 Stefan Behnel : >>>> Vitja Makarov, 29.07.2011 10:55: >>>>> >>>>> 2011/7/29 Stefan Behnel: >>>>>> >>>>>> V

Re: [Cython] GCC 4.6 unused-but-set-variable warnings

2011-08-04 Thread Vitja Makarov
2011/8/4 Stefan Behnel : > Vitja Makarov, 03.08.2011 21:07: >>>> >>>> Stefan, do you know why skip_dispatch argument is used for >>>> module-level cpdef function? >>>> >>>> There is warning about that too. > > It seems yo

Re: [Cython] CmdLine.py refactoring

2011-08-08 Thread Vitja Makarov
2011/8/9 Stefan Behnel : > Stefano, 08.08.2011 22:36: >> >> As a proof of its quality, Fedora, Ubuntu and SuSe all ship a >> python-argparse >> package for older versions of python (<2.7). Given that the module is >> self- >> contained and as small as 80KB, wouldn't be feasible to add it as a build

Re: [Cython] Cython bug ? - Entry.is_arg flag not set for all arguments

2011-08-11 Thread Vitja Makarov
2011/8/12 Stefan Behnel : > [fixed subject] > > Romain Guillebert, 12.08.2011 03:19: >> >> I tried to compiled Demos/primes.pyx using the ctypes backend and I >> think I've found a bug : >> The Entry for the kmax parameter does not set is_arg to 1. However if I >> turn the def into a cdef, it works

[Cython] Yet another Python to C compiler

2011-08-11 Thread Vitja Makarov
Hi! Recently I've found one more Python to C compiler, that translates python bytecode into C source. And author says about 100% Python compatibility. The project is a signle 800KB python file. http://code.google.com/p/2c-python/ I was wondering when found that 2c beats Cython in some benchmarks

Re: [Cython] Yet another Python to C compiler

2011-08-12 Thread Vitja Makarov
2011/8/12 Vitja Makarov : > Hi! > > Recently I've found one more Python to C compiler, that translates > python bytecode into C source. > And author says about 100% Python compatibility. The project is a > signle 800KB python file. > > http://code.google.com/p/2c-pyt

Re: [Cython] Vitja's CyFunction branch

2011-08-12 Thread Vitja Makarov
2011/7/30 Stefan Behnel : > Robert Bradshaw, 30.07.2011 18:49: >> >> The only reason I haven't pushed a release branch is that last >> time I did that it kept getting the mainline development pulled into >> it > > That was just an accident on my side when I wasn't aware of the new branch > you had

Re: [Cython] Vitja's CyFunction branch

2011-08-12 Thread Vitja Makarov
2011/8/13 Stefan Behnel : > Vitja Makarov, 13.08.2011 06:41: >> >> 2011/7/30 Stefan Behnel: >>> >>> Robert Bradshaw, 30.07.2011 18:49: >>>> >>>> The only reason I haven't pushed a release branch is that last >>>> ti

Re: [Cython] Cython bug ? - Entry.is_arg flag not set for all arguments

2011-08-14 Thread Vitja Makarov
2011/8/12 Vitja Makarov : > 2011/8/12 Stefan Behnel : >> [fixed subject] >> >> Romain Guillebert, 12.08.2011 03:19: >>> >>> I tried to compiled Demos/primes.pyx using the ctypes backend and I >>> think I've found a bug : >>> The Entry

Re: [Cython] Cython bug ? - Entry.is_arg flag not set for all arguments

2011-08-14 Thread Vitja Makarov
2011/8/14 Stefan Behnel : > Vitja Makarov, 14.08.2011 16:57: >>> >>> Yeah, that would be really nice if all args including starred ones >>> will have is_arg attribute set. >> >> I've fixed the issue >> https://github.com/vitek/cython/commits/

Re: [Cython] Problems with decorated methods in cdef classes

2011-08-14 Thread Vitja Makarov
2011/8/14 Stefan Behnel : > Hi, > > I've taken another stab at #593 and changed the way decorators are currently > evaluated. > > http://trac.cython.org/cython_trac/ticket/593 > > https://github.com/cython/cython/commit/c40ff48f84b5e5841e4e2d2c6dcce3e6494e4c25 > > We previously had > >    @deco >  

[Cython] Class scope lookup order

2011-08-14 Thread Vitja Makarov
When creating python-class dict it seems that CPython first looks at dict then at globals: A = 1 class X: A = A def y(): A = 3 class Y: A = A return Y Y = y() print(X.A, Y.A) Will print: 1, 1 And not: 1, 3 I didn't find documentation for this but if I'm correct that sho

Re: [Cython] Class scope lookup order

2011-08-14 Thread Vitja Makarov
2011/8/15 Vitja Makarov : > When creating python-class dict it seems that CPython first looks at > dict then at globals: > > A = 1 > class X: >    A = A > > def y(): >    A = 3 >    class Y: >        A = A >    return Y > Y = y() > > print(X.A, Y.

Re: [Cython] Class scope lookup order

2011-08-15 Thread Vitja Makarov
2011/8/15 Stefan Behnel : > Stefan Behnel, 15.08.2011 11:34: >> >> at least to me, the most surprising thing is this: >> >>  >>> A = 1 >>  >>> def foo(x): >>  ...   A = x >>  ...   class X: >>  ...     a = A >>  ...   return X >>  ... >>  >>> foo(2).a >>  2 >>  >>> def foo(x): >>  ...   A = x >>  .

Re: [Cython] Class scope lookup order

2011-08-15 Thread Vitja Makarov
2011/8/15 Stefan Behnel : > Vitja Makarov, 15.08.2011 11:55: >> >> 2011/8/15 Stefan Behnel: >>> >>> Stefan Behnel, 15.08.2011 11:34: >>>> >>>> at least to me, the most surprising thing is this: >>>> >>>>  >>>

Re: [Cython] Class scope lookup order

2011-08-15 Thread Vitja Makarov
2011/8/15 Vitja Makarov : > 2011/8/15 Stefan Behnel : >> Vitja Makarov, 15.08.2011 11:55: >>> >>> 2011/8/15 Stefan Behnel: >>>> >>>> Stefan Behnel, 15.08.2011 11:34: >>>>> >>>>> at least to me, the most surprising

Re: [Cython] Class scope lookup order

2011-08-15 Thread Vitja Makarov
2011/8/15 Stefan Behnel : > Vitja Makarov, 15.08.2011 19:11: >> >> I think I'm done with the issue and if you don't mind I'll push that. >> >> >> https://github.com/vitek/cython/commit/b4a0493efbae68b30d54f0c58311c71465d57d43 > > Could you ple

Re: [Cython] Class scope lookup order

2011-08-15 Thread Vitja Makarov
2011/8/15 Stefan Behnel : > Vitja Makarov, 15.08.2011 19:56: >> >> 2011/8/15 Stefan Behnel: >>> >>> Vitja Makarov, 15.08.2011 19:11: >>>> >>>> I think I'm done with the issue and if you don't mind I&

[Cython] Entry lookup order

2011-08-16 Thread Vitja Makarov
Trying to silence compiler warning about taking address of variable I've found again that when CreateControlFlow is ran lhs entries are resolved and rhs aren't. As I understand analyse_declarations() creates scope entries for lhs. At this point we don't know much about scope name reference belongs

[Cython] pyregr testsuite regression

2011-08-22 Thread Vitja Makarov
Hudson shows regression for last 4 pyregr builds. -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] pyregr testsuite regression

2011-08-22 Thread Vitja Makarov
2011/8/23 Stefan Behnel : > Vitja Makarov, 23.08.2011 06:26: >> >> Hudson shows regression for last 4 pyregr builds. > > Yes, I enabled the "always_allow_keywords" option for better Python > compatibility, which disables the signature optimisation into METH_O &

Re: [Cython] pyregr testsuite regression

2011-08-22 Thread Vitja Makarov
2011/8/23 Robert Bradshaw : > On Mon, Aug 22, 2011 at 9:41 PM, Stefan Behnel wrote: >> Vitja Makarov, 23.08.2011 06:26: >>> >>> Hudson shows regression for last 4 pyregr builds. >> >> Yes, I enabled the "always_allow_keywords" option for b

Re: [Cython] pyregr testsuite regression

2011-08-22 Thread Vitja Makarov
2011/8/23 Vitja Makarov : > 2011/8/23 Robert Bradshaw : >> On Mon, Aug 22, 2011 at 9:41 PM, Stefan Behnel wrote: >>> Vitja Makarov, 23.08.2011 06:26: >>>> >>>> Hudson shows regression for last 4 pyregr builds. >>> >>> Yes, I

[Cython] non-virtual methods

2011-08-24 Thread Vitja Makarov
Recently I used cython in my project and I came with idea that sometimes virtual methods are overkill. What's about adding non-virtual decorator for c[p]def methods? cdef class Foo: @cython.nonvirtual cpdef int is_active(self): return clib.obj_is_active(self._cobj) -- vit

Re: [Cython] non-virtual methods

2011-08-24 Thread Vitja Makarov
2011/8/24 Stefan Behnel : > Vitja Makarov, 24.08.2011 21:00: >> >> Recently I used cython in my project and I came with idea that >> sometimes virtual methods are overkill. >> >> What's about adding non-virtual decorator for c[p]def methods? >> &

Re: [Cython] non-virtual methods

2011-08-24 Thread Vitja Makarov
2011/8/24 Vitja Makarov : > 2011/8/24 Stefan Behnel : >> Vitja Makarov, 24.08.2011 21:00: >>> >>> Recently I used cython in my project and I came with idea that >>> sometimes virtual methods are overkill. >>> >>> What's about adding non-vi

Re: [Cython] non-virtual methods

2011-08-25 Thread Vitja Makarov
2011/8/24 Stefan Behnel : > Vitja Makarov, 24.08.2011 21:17: >> >> 2011/8/24 Stefan Behnel: >>> >>> Vitja Makarov, 24.08.2011 21:00: >>>> >>>> Recently I used cython in my project and I came with idea that >>>> sometimes vi

Re: [Cython] non-virtual methods

2011-08-25 Thread Vitja Makarov
2011/8/25 Stefan Behnel : > Vitja Makarov, 25.08.2011 18:11: >> >> 2011/8/24 Stefan Behnel: >>> >>> Vitja Makarov, 24.08.2011 21:17: >>>> >>>> I tried final classes: >>>> 2. In this example foo call is done through virtual table

Re: [Cython] non-virtual methods

2011-08-25 Thread Vitja Makarov
2011/8/25 Stefan Behnel : > Vitja Makarov, 25.08.2011 20:32: >> >> 2011/8/25 Stefan Behnel: >>> >>> Vitja Makarov, 25.08.2011 18:11: >>>> >>>> 2011/8/24 Stefan Behnel: >>>>> >>>>> Vitja Makarov, 24.08.2011

Re: [Cython] non-virtual methods

2011-08-25 Thread Vitja Makarov
2011/8/25 Vitja Makarov : > 2011/8/25 Stefan Behnel : >> Vitja Makarov, 25.08.2011 20:32: >>> >>> 2011/8/25 Stefan Behnel: >>>> >>>> Vitja Makarov, 25.08.2011 18:11: >>>>> >>>>> 2011/8/24 Stefan Behnel: >>>&g

Re: [Cython] non-virtual methods

2011-08-25 Thread Vitja Makarov
2011/8/25 Vitja Makarov : > 2011/8/25 Vitja Makarov : >> 2011/8/25 Stefan Behnel : >>> Vitja Makarov, 25.08.2011 20:32: >>>> >>>> 2011/8/25 Stefan Behnel: >>>>> >>>>> Vitja Makarov, 25.08.2011 18:11: >>>&g

Re: [Cython] non-virtual methods

2011-08-27 Thread Vitja Makarov
2011/8/26 Vitja Makarov : > 2011/8/25 Vitja Makarov : >> 2011/8/25 Vitja Makarov : >>> 2011/8/25 Stefan Behnel : >>>> Vitja Makarov, 25.08.2011 20:32: >>>>> >>>>> 2011/8/25 Stefan Behnel: >>>>>> &

Re: [Cython] non-virtual methods

2011-08-27 Thread Vitja Makarov
2011/8/27 Vitja Makarov : > 2011/8/26 Vitja Makarov : >> 2011/8/25 Vitja Makarov : >>> 2011/8/25 Vitja Makarov : >>>> 2011/8/25 Stefan Behnel : >>>>> Vitja Makarov, 25.08.2011 20:32: >>>>>> >>>>>> 2011/8/25 Stefan Beh

Re: [Cython] non-virtual methods

2011-08-28 Thread Vitja Makarov
2011/8/27 Vitja Makarov : > 2011/8/27 Vitja Makarov : >> 2011/8/26 Vitja Makarov : >>> 2011/8/25 Vitja Makarov : >>>> 2011/8/25 Vitja Makarov : >>>>> 2011/8/25 Stefan Behnel : >>>>>> Vitja Makarov, 25.08.2011 20:32: >>&

[Cython] ComprehensionNode problem

2011-08-28 Thread Vitja Makarov
I've started #715 ticket investigation. Here is minimal test case: # cython: language_level=3 def foo(target): return [(e for e in t) for t in target] Crash in the ticket is related to GeneratorExpressionScope (name is not correct, actually ScopedExprScope or NestedScope) If you set langua

Re: [Cython] non-virtual methods

2011-08-29 Thread Vitja Makarov
2011/8/30 Robert Bradshaw : > On Sun, Aug 28, 2011 at 4:00 AM, Vitja Makarov > wrote: >> 2011/8/27 Vitja Makarov : >>> 2011/8/27 Vitja Makarov : >>>> 2011/8/26 Vitja Makarov : >>>>> 2011/8/25 Vitja Makarov : >>>>>> 2011/8/2

Re: [Cython] non-virtual methods

2011-08-30 Thread Vitja Makarov
2011/8/30 Robert Bradshaw : > On Mon, Aug 29, 2011 at 10:57 PM, Vitja Makarov > wrote: >> 2011/8/30 Robert Bradshaw : >>> On Sun, Aug 28, 2011 at 4:00 AM, Vitja Makarov >>> wrote: >>>> 2011/8/27 Vitja Makarov : >>>>> 2011/8/27 Vitja Mak

Re: [Cython] non-virtual methods

2011-08-30 Thread Vitja Makarov
2011/8/30 Robert Bradshaw : > On Tue, Aug 30, 2011 at 9:14 AM, Vitja Makarov > wrote: >> 2011/8/30 Robert Bradshaw : >>> On Mon, Aug 29, 2011 at 10:57 PM, Vitja Makarov >>> wrote: >>>> 2011/8/30 Robert Bradshaw : >>>>> On Sun, Aug 28, 20

Re: [Cython] non-virtual methods

2011-08-30 Thread Vitja Makarov
2011/8/30 Stefan Behnel : > Robert Bradshaw, 30.08.2011 18:18: >> >> On Tue, Aug 30, 2011 at 9:14 AM, Vitja Makarov wrote: >>> >>> What about final classes with cpdef methods? >>> >>> @cython.final >>> class Foo: >>>  

Re: [Cython] non-virtual methods

2011-08-30 Thread Vitja Makarov
2011/8/30 Stefan Behnel : > Vitja Makarov, 30.08.2011 18:39: >> >> 2011/8/30 Stefan Behnel: >>> >>> Robert Bradshaw, 30.08.2011 18:18: >>>> >>>> On Tue, Aug 30, 2011 at 9:14 AM, Vitja Makarov wrote: >>>>> >>>>>

[Cython] Bug in CPython?

2011-08-31 Thread Vitja Makarov
https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr-py27-c/795/ It seems that crash was caused by change in cpython repo. -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cyt

Re: [Cython] Bug in CPython?

2011-08-31 Thread Vitja Makarov
2011/8/31 Stefan Behnel : > Vitja Makarov, 31.08.2011 15:04: >> >> >> https://sage.math.washington.edu:8091/hudson/job/cython-devel-tests-pyregr-py27-c/795/ >> >> It seems that crash was caused by change in cpython repo. > > Without having looked into thi

Re: [Cython] ComprehensionNode problem

2011-09-01 Thread Vitja Makarov
2011/9/2 Robert Bradshaw : > On Sun, Aug 28, 2011 at 1:19 PM, Vitja Makarov > wrote: >> I've started #715 ticket investigation. >> >> >> Here is minimal test case: >> >> # cython: language_level=3 >> def foo(target): >>    return [(

Re: [Cython] non-virtual methods

2011-09-04 Thread Vitja Makarov
2011/8/30 Robert Bradshaw : > On Tue, Aug 30, 2011 at 10:19 AM, Vitja Makarov > wrote: >> 2011/8/30 Stefan Behnel : >>> Vitja Makarov, 30.08.2011 18:39: >>>> >>>> 2011/8/30 Stefan Behnel: >>>>> >>>>> Robert Bradshaw, 30.

Re: [Cython] Jenkins jobs refactored

2011-09-10 Thread Vitja Makarov
2011/9/7 Robert Bradshaw : > On Tue, Sep 6, 2011 at 1:58 PM, Stefan Behnel wrote: >> Robert Bradshaw, 06.09.2011 22:21: >>> >>> On Tue, Sep 6, 2011 at 1:12 PM, Stefan Behnel wrote: I replaced the half-a-ton of cython-devel jobs in Jenkins by three multi-configuration matrix jobs: >>

[Cython] Bugfix release

2011-09-10 Thread Vitja Makarov
Are we going to make a bugfix release? There are some critical bugs in 0.15, T725 for example. Think we should port fixes back to 0.15 and then release it as 0.15.1 -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/

Re: [Cython] Bugfix release

2011-09-11 Thread Vitja Makarov
2011/9/11 Stefan Behnel : > Stefan Behnel, 11.09.2011 13:33: >> >> Robert Bradshaw, 11.09.2011 07:54: >>> >>> On Sat, Sep 10, 2011 at 10:32 PM, Vitja Makarov wrote: >>>> >>>> Are we going to make a bugfix release? >>>> There

Re: [Cython] Bugfix release

2011-09-12 Thread Vitja Makarov
2011/9/11 Stefan Behnel : > Stefan Behnel, 11.09.2011 15:08: >> >> I see two ways to get a release out: create a branch from the current >> master and remove from it what we don't consider stable (or 'right' for >> that release), or merge the most important and easily mergeable changes >> over to t

<    1   2   3   4   >