Re: [Cython] nonecheck directive

2011-05-20 Thread Robert Bradshaw
On Fri, May 20, 2011 at 8:13 AM, Stefan Behnel wrote: > Hi, > > why is the "nonecheck" directive set to False by default? Shouldn't it > rather be a "I know what I'm doing" option that allows advanced users to > trade speed for safety? > > The reason I'm asking is that I just enabled its evaluatio

Re: [Cython] nonecheck directive

2011-05-21 Thread Robert Bradshaw
On Fri, May 20, 2011 at 10:57 PM, Stefan Behnel wrote: > Robert Bradshaw, 20.05.2011 17:33: >> >> On Fri, May 20, 2011 at 8:13 AM, Stefan Behnel wrote: >>> >>> why is the "nonecheck" directive set to False by default? Shouldn't it >>&g

Re: [Cython] local variable handling in generators

2011-05-23 Thread Robert Bradshaw
On Mon, May 23, 2011 at 2:57 AM, Stefan Behnel wrote: > Stefan Behnel, 23.05.2011 11:29: >> >> Stefan Behnel, 23.05.2011 11:15: >>> >>> Vitja Makarov, 23.05.2011 10:50: 2011/5/23 Stefan Behnel: > > I'm fine with deallocating variables that are no longer used after the > user

Re: [Cython] CF and finally clause

2011-05-24 Thread Robert Bradshaw
On Tue, May 24, 2011 at 12:33 PM, Vitja Makarov wrote: > Hi! > > When I create control flow graph I have to visit finally clause twice. > This is required because of different outputs should be generated for > success and exception case: > > try: >    a = might_raise() > finally: >    pass # 'a' m

Re: [Cython] CF and finally clause

2011-05-24 Thread Robert Bradshaw
On Tue, May 24, 2011 at 2:17 PM, Carl Witty wrote: > On Tue, May 24, 2011 at 2:04 PM, Stefan Behnel wrote: >> I'm not so opposed to this proposal. I have been (idly and unfoundedly) >> wondering basically forever if the current way try-finally is implemented is >> actually a good one. I can accep

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-25 Thread Robert Bradshaw
On Wed, May 25, 2011 at 12:37 PM, jpe wrote: > This optimizes startswith / endwith optimization for str. Cool. >What's unclear to me is how str will be mapped to either bytes or unicode; I >assume at some point cython will have a python3 syntax mode where str is >unicode, print is a function,

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-25 Thread Robert Bradshaw
On Wed, May 25, 2011 at 1:41 PM, John Ehresman wrote: > On 5/25/11 3:51 PM, Robert Bradshaw wrote: >> >> I'm glad you're thinking about this question, some explanation of the >> various string types is at >> http://wiki.cython.org/enhancements/stringliterals

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-26 Thread Robert Bradshaw
On Thu, May 26, 2011 at 12:27 AM, Stefan Behnel wrote: > Robert Bradshaw, 25.05.2011 22:52: >> >> On Wed, May 25, 2011 at 1:41 PM, John Ehresman wrote: >>> >>> On 5/25/11 3:51 PM, Robert Bradshaw wrote: >>>> >>>> I'm glad you're

Re: [Cython] [cython] Initial startswith / endswith optimization (#35)

2011-05-26 Thread Robert Bradshaw
On Thu, May 26, 2011 at 1:43 AM, Stefan Behnel wrote: > Dag Sverre Seljebotn, 26.05.2011 10:24: >> >> On 05/26/2011 10:12 AM, Stefan Behnel wrote: >>> >>> Robert Bradshaw, 26.05.2011 09:40: >>>> >>>> the pattern of swapping out builtin m

Re: [Cython] Redundant Cython exception message strings

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: > Hi, > > I recently stumbled over a tradeoff question with AttributeError, and now > found the same situation for UnboundLocalError in Vitja's control flow > branch. So here it is. > > When we raise an exception several times in different part

Re: [Cython] Broken tests

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 6:16 AM, Vitja Makarov wrote: > 2011/5/27 Dag Sverre Seljebotn : >> On 05/27/2011 02:41 PM, Vitja Makarov wrote: >>> >>> 2011/5/27 Stefan Behnel: Hi, could we please make it a requirement to run the complete test suite after a branch merge? Or

Re: [Cython] Control Flow

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 7:27 AM, Vitja Makarov wrote: > I've recently fixed some issues: > >  - closure variables were not tracked >  - scoped expression variables were initialized to None > > So, I should fix broken tests, here are some of them: > > nogil (should be fixed) > purecdef (upstream) >

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 1:15 AM, Vitja Makarov wrote: > 2011/5/28 Robert Bradshaw : >> On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: >>> Hi, >>> >>> I recently stumbled over a tradeoff question with AttributeError, and now >>> found the sa

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 2:37 AM, Stefan Behnel wrote: > Robert Bradshaw, 28.05.2011 00:39: >> >> On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel wrote: >>> >>> I recently stumbled over a tradeoff question with AttributeError, and now >>> found the same

Re: [Cython] Bindings performance issue

2011-06-01 Thread Robert Bradshaw
On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov wrote: > 2011/6/1 mark florisson : >> On 31 May 2011 20:25, Vitja Makarov wrote: >>> Hi! >>> >>> Is bindings performance issue valuable? >>> >>> $ cat bindbench.pyx >>> def wo_bindings(): >>>    pass >>> >>> def outer(): >>>    def inner(): >>>      

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov wrote: > 2011/6/2 Robert Bradshaw : >> On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov >> wrote: >>> 2011/6/1 mark florisson : >>>> On 31 May 2011 20:25, Vitja Makarov wrote: >>>>> Hi!

[Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
In looking at merging fused types, it's time to nail down the syntax. The current implementation is ctypedef cython.fused_type(list, dict, object) fused_t This requires an addition to the grammer to allow the "call" syntax in a type declaration, as well as special casing to make it allowed on

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:00 PM, mark florisson wrote: > On 2 June 2011 18:31, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 1:30 AM, Vitja Makarov >> wrote: >>> 2011/6/2 Robert Bradshaw : >>>> On Wed, Jun 1, 2011 at 7:26 AM, Vitja Makarov >&

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 1:07 PM, mark florisson wrote: > On 2 June 2011 18:39, Robert Bradshaw wrote: >> In looking at merging fused types, it's time to nail down the syntax. >> The current implementation is >> >>    ctypedef cython.fused_type(list, dict, object

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:03 PM, mark florisson wrote: If anyone is assigning a Cython function to an object and then using it they're counting on the current non-binding behavior, and it will break. The speed is probably a lesser issue, which is what benchmarks are for. >>> >>

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn wrote: > On 06/02/2011 06:39 PM, Robert Bradshaw wrote: >> >> In looking at merging fused types, it's time to nail down the syntax. >> The current implementation is >> >>     ctypedef cython.fused_type(

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:21 PM, mark florisson wrote: > On 2 June 2011 23:13, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:03 PM, mark florisson >> wrote: >> >>>>>> If anyone is assigning a Cython function to an object and then using >>>&g

Re: [Cython] Fused types syntax

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:42 PM, mark florisson wrote: > On 2 June 2011 23:31, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:18 PM, Dag Sverre Seljebotn >> wrote: >>> On 06/02/2011 06:39 PM, Robert Bradshaw wrote: >>>> >>>> In looking at

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 2:45 PM, mark florisson wrote: > On 2 June 2011 23:34, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:21 PM, mark florisson >> wrote: >>> On 2 June 2011 23:13, Robert Bradshaw wrote: >>>> On Thu, Jun 2, 2011 at 2:03 PM, mark flo

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 3:04 PM, mark florisson wrote: > On 2 June 2011 23:59, Robert Bradshaw wrote: >> On Thu, Jun 2, 2011 at 2:45 PM, mark florisson >> wrote: >>> On 2 June 2011 23:34, Robert Bradshaw wrote: >>>> On Thu, Jun 2, 2011 at 2:21 PM, mark fl

Re: [Cython] Header file bug

2011-06-06 Thread Robert Bradshaw
On Sat, Jun 4, 2011 at 10:36 AM, Seth Shannin wrote: > Hello all, > > First, I tried to post this earlier but am pretty sure it didn't go through. >  If this is a double, I apologize. > > This comes out of a discussion on the cython-users list.  I am getting some > warnings when using cython to co

Re: [Cython] Header file bug

2011-06-08 Thread Robert Bradshaw
I agree. On Wed, Jun 8, 2011 at 9:47 AM, wrote: > Yeah, I think just erroring would be perfectly reasonable. > > -Seth > > Quoting "Greg Ewing" : > >> Seth Shannin wrote: >>> >>> I would still make the case that currently >>> something is a bit off in that the header file tries to use something

Re: [Cython] Header file bug

2011-06-09 Thread Robert Bradshaw
ard to find.  It could be nice to make this > clearer. > > -Seth > > On 06/09/2011 01:57 AM, Robert Bradshaw wrote: >> I agree. >> >> On Wed, Jun 8, 2011 at 9:47 AM,   wrote: >>> Yeah, I think just erroring would be perfectly reasonable. >>> >&

Re: [Cython] Constant folding

2011-06-10 Thread Robert Bradshaw
On Fri, Jun 10, 2011 at 8:22 AM, Vitja Makarov wrote: > Hi! > > When CF is there it is possible to improve constant folding. Do you have some examples? I can see that a = 1.0 b = sin(a) could now be optimized, but I don't see that being a common pattern. (Also, if a is typed, gcc is lik

Re: [Cython] setup.py refusing to run cython

2011-06-14 Thread Robert Bradshaw
On Tue, Jun 14, 2011 at 12:39 PM, Lisandro Dalcin wrote: > On 14 June 2011 16:20, Nathaniel Smith wrote: >> Hello Cython folks, >> >> This message (see below) is the second report I've gotten of a very >> strange build problem with a cython module. I'm just using the >> standard 'from Cython.Dist

Re: [Cython] Test runner changes for Python/PyPy backend

2011-06-17 Thread Robert Bradshaw
On Thu, Jun 16, 2011 at 11:07 PM, Stefan Behnel wrote: > Hi, > > Romain wants to start writing tests for his Python/ctypes backend branch, so > we need to extend the test runner. > > We'll eventually want to merge his branch back into normal mainline, so I > suggest actually just running the compl

Re: [Cython] Some bugs found while testing cython on django

2011-06-20 Thread Robert Bradshaw
On Mon, Jun 20, 2011 at 12:14 AM, Stefan Behnel wrote: > Vitja Makarov, 19.06.2011 21:37: >> >> Trying to compile django I've found some problems: >> >> 1. It seems that cython currently doesn't support tuples inside args >> definition: >> >> def foo((a, b), c): >> >> Currently this gives missing

Re: [Cython] Hudson is down?

2011-07-05 Thread Robert Bradshaw
On Mon, Jul 4, 2011 at 9:12 PM, Stefan Behnel wrote: > Vitja Makarov, 04.07.2011 20:43: >> >> It seems that hudson server is down. > > It's back now. Looks like the sage.math machine was restarted. Yep, sage.math was restarted. Thanks for getting this back up and running. - Robert __

Re: [Cython] Speedup hudson job with ccache

2011-07-06 Thread Robert Bradshaw
Very cool. We should get ccache on sage.math to start using it on hudson. On Wed, Jul 6, 2011 at 12:24 PM, Vitja Makarov wrote: > I tried to speedup runtests with ccache > > How to run: > CYTHON_RUNTESTS_CCACHE="ccache" python  runtests.py > > Running 'CYTHON_RUNTESTS_CCACHE="ccache" python  runt

Re: [Cython] Speedup hudson job with ccache

2011-07-07 Thread Robert Bradshaw
On Wed, Jul 6, 2011 at 11:54 PM, Vitja Makarov wrote: > > > 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 s

Re: [Cython] Speedup hudson job with ccache

2011-07-07 Thread Robert Bradshaw
On Thu, Jul 7, 2011 at 2:24 AM, Stefan Behnel wrote: > Vitja Makarov, 07.07.2011 11:00: >> >> 2011/7/7 Stefan Behnel: >>> >>> Stefan Behnel, 07.07.2011 09:29: >>> The .ccache directory is also there now, size is ~750M. I'll move it to >>> the >>> local scratch disc, CCACHE_DIR should do that. Does

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

2011-07-18 Thread 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. On Mon, Jul 18, 2011 at 2:38 AM, Vitja Mak

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

2011-07-18 Thread Robert Bradshaw
On Mon, Jul 18, 2011 at 4:34 PM, Greg Ewing wrote: > Chris Colbert wrote: > >>    cdef public enum: >>       EV_READ  = 1 >>       EV_WRITE = 2 >> >>    However, I do not like it, because I would like to use "public" for >>    other meaning (API generation). > > My suggestion is > >  cdef exposed

Re: [Cython] Any news from the IronPython port?

2011-07-18 Thread Robert Bradshaw
On Mon, Jul 18, 2011 at 7:45 AM, Jason McCampbell wrote: > Hi Stefan, > Definitely not buried for good, though we haven't made a lot of changes > recently. :)  We used it for porting SciPy to .NET and re-wrote a large > number of the SciPy C module implementations in Cython.  It is generally > sta

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

2011-07-18 Thread 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 ever created a >> formal pull request) something came up.

Re: [Cython] BUG: Cython's dies with AttributeError

2011-07-19 Thread Robert Bradshaw
On Thu, Jul 7, 2011 at 2:25 PM, Lars Buitinck wrote: > Dear developers, > > I just got an error message from Cython (current Git). The error can > be reproduced by putting > > cdef foo(): pass > > in a file called foo.pyx, and compiling that. (I know there's an error > in the file as well.) Would

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

2011-07-19 Thread Robert Bradshaw
On Tue, Jul 19, 2011 at 3:02 PM, Lisandro Dalcin wrote: > 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 h

[Cython] Cython 0.15 release

2011-07-19 Thread 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 got a big backlog of stuff to get out. I

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

2011-07-20 Thread Robert Bradshaw
;>>> On 20 July 2011 20:04, Lisandro Dalcin wrote: >>>>>> On 20 July 2011 13:51, mark florisson wrote: >>>>>>> On 20 July 2011 18:06, Lisandro Dalcin wrote: >>>>>>>> On 19 July 2011 20:48, Robert Bradshaw >>>>&g

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

2011-07-20 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 2:53 PM, mark florisson wrote: > On 20 July 2011 23:24, Robert Bradshaw wrote: >> On Wed, Jul 20, 2011 at 12:53 PM, mark florisson >> wrote: >>> On 20 July 2011 21:44, Lisandro Dalcin wrote: >>>> On 20 July 2011 16:27, mark florisson

Re: [Cython] Cython 0.15 release

2011-07-20 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 2:47 AM, 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: &g

Re: [Cython] Strange cimport behaviour

2011-07-20 Thread 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: >>> >>> ((c2f2e12...)) vitja@vitja-laptop:~/work/cython-vitek/zzz$ cat ./fff.pyx >>> cimport posix.unistd >>> c

Re: [Cython] Strange cimport behaviour

2011-07-20 Thread Robert Bradshaw
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 >> wrote: >>> 2011/7/16 Lars Buitinck : >>>> 2011/7/15 Vitja Makarov : >>>>> I've found str

Re: [Cython] Strange cimport behaviour

2011-07-21 Thread 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 >>> wrote: >>>> 2011/7/16 Lars Buitinck : >>

Re: [Cython] runtests libgomp fail

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 14, 2011 at 4:24 AM, mark florisson wrote: > I added a test for nested parallelism with exceptions (with OpenMP > nesting explicitly enabled), however if libgomp cannot create more > threads it exits the process with exit status 1 and the message > "libgomp: Thread creation failed: Res

Re: [Cython] PEP 3135 -- New Super

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov wrote: > > > 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 >> >> >> >> >> >> O

Re: [Cython] Strange cimport behaviour

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 21, 2011 at 2:28 AM, Lars Buitinck wrote: > 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 : >>

Re: [Cython] Cython 0.15 release

2011-07-21 Thread Robert Bradshaw
Stefan, Are the lxml failures at https://sage.math.washington.edu:8091/hudson/job/cython-devel-lxml-trunk-py27/ expected? - Robert ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

[Cython] Cython 0.15 release candidate

2011-07-21 Thread Robert Bradshaw
Cython has seen an enormous amount of development since 0.14.1. If you are not already using the latest version from the development repository, we encourage you to try out the release candidate: http://cython.org/release/Cython-0.15rc0.tar.gz - Robert _

Re: [Cython] [cython-users] Cython 0.15 release candidate

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 21, 2011 at 4:24 PM, 최원준 wrote: > what is the new feature of cython 0.15? The release notes are still pretty bare-bones, but see: http://wiki.cython.org/ReleaseNotes-0.15 > 2011/7/22 Robert Bradshaw >> >> Cython has seen an enormous amount of development since 0.1

Re: [Cython] Utility Codes and templates

2011-07-22 Thread 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: > > https://github.com/markflorisson88/cyth

Re: [Cython] Utility Codes and templates

2011-07-22 Thread 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 UtilityCodes

Re: [Cython] Utility Codes and templates

2011-07-25 Thread 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: >>>> >>>> Vitja Makarov, 25.07.2011 08:41: >>>>> >>&

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 9:48 PM, Vitja Makarov wrote: > 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: >>>>> >>

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 11:39 PM, Stefan Behnel wrote: > Robert Bradshaw, 26.07.2011 06:29: >> >> On Mon, Jul 25, 2011 at 3:07 AM, mark florisson >>> >>> It's now 'MyUtility' and >>> 'MyUtility.proto'. If there's no obj

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 11:50 PM, Stefan Behnel wrote: > Robert Bradshaw, 26.07.2011 07:00: >> >> On Mon, Jul 25, 2011 at 9:48 PM, Vitja Makarov wrote: >>> >>> I think that would seriously help with  moving shared C-code into >>> cython library (.h an

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

2011-07-27 Thread Robert Bradshaw
On Wed, Jul 27, 2011 at 9:51 AM, mark florisson wrote: > On 27 July 2011 18:46, Vitja Makarov wrote: >> 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

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

2011-07-27 Thread Robert Bradshaw
On Wed, Jul 27, 2011 at 11:16 AM, Dag Sverre Seljebotn wrote: > On 07/27/2011 08:11 PM, Robert Bradshaw wrote: >> >> On Wed, Jul 27, 2011 at 9:51 AM, mark florisson >>  wrote: >>> >>> On 27 July 2011 18:46, Vitja Makarov  wrote: >>&g

Re: [Cython] Cython 0.15 release candidate

2011-07-29 Thread Robert Bradshaw
On Fri, Jul 29, 2011 at 1:33 AM, mark florisson wrote: > On 25 July 2011 08:03, Arfrever Frehtes Taifersar Arahesis > wrote: >> There are 4 test failures with Python 2.6, 2.7, 3.1 and 3.2. >> Output with Python 2.7: >> >> == >> F

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

2011-07-29 Thread Robert Bradshaw
On Wed, Jul 27, 2011 at 11:32 PM, Vitja Makarov wrote: > 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.

Re: [Cython] Cython 0.15 release candidate

2011-07-29 Thread Robert Bradshaw
On Fri, Jul 29, 2011 at 11:24 AM, mark florisson wrote: > On 29 July 2011 20:06, Robert Bradshaw wrote: >> On Fri, Jul 29, 2011 at 1:33 AM, mark florisson >> wrote: >>> On 25 July 2011 08:03, Arfrever Frehtes Taifersar Arahesis >>> wrote: >>>> T

Re: [Cython] Vitja's CyFunction branch

2011-07-30 Thread Robert Bradshaw
On Sat, Jul 30, 2011 at 7:20 AM, Dag Sverre Seljebotn wrote: > My opinion is that we create a (short-lived) branch for the release, and > continue development (ignoring the release) on master. > > If CyFunction solves no problems that blocks a release, I am -1 on merging > it into the release bran

Re: [Cython] Cython 0.15 release

2011-07-31 Thread Robert Bradshaw
On Sat, Jul 30, 2011 at 11:35 PM, Vitja Makarov wrote: > 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 >>

Re: [Cython] Cython 0.15 release candidate

2011-07-31 Thread Robert Bradshaw
On Sat, Jul 30, 2011 at 10:57 AM, Arfrever Frehtes Taifersar Arahesis wrote: > 2011-07-29 23:23:46 Dag Sverre Seljebotn napisał(a): >> Looks very much like a numpy-on-py3 bug to me. > > I have reported: > http://projects.scipy.org/numpy/ticket/1919 > (NumPy-related tests in Cython pass with Python

Re: [Cython] Cython 0.15 release candidate

2011-07-31 Thread Robert Bradshaw
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 > are not already using the latest version from the development > repository, we encourage you to try out the release candidate: > http://cython.org/re

Re: [Cython] Cython 0.15 release candidate

2011-08-01 Thread 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 >&g

Re: [Cython] OpenMP problem

2011-08-01 Thread Robert Bradshaw
On Sun, Jul 31, 2011 at 11:48 PM, Stefan Behnel wrote: > mark florisson, 31.07.2011 22:08: >> >> I pushed it to release, should I rebase master on release now? > > Well, so far, the release branch hasn't been used and rc1 was created from > master. All current changes in master are either consider

Re: [Cython] object to struct conversion

2011-08-03 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel wrote: > mark florisson, 03.08.2011 16:28: >> >> Is there any specific reason objects cannot coerce to structs (from >> e.g. dicts?). It would be convenient for memoryviews, then you could >> assign dicts (or any mapping) to items in the memoryview fro

Re: [Cython] Willing to contribute

2011-08-03 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 1:53 PM, Stefano wrote: > Hi everybody, > > I've been a enthusiast Python programmer for 3 years now, and I've hailed > Cython project with great interest. Now, I'm willing to contribute. I've would > say I'm an quite an expert Python programmer and I've some-year-long > exp

[Cython] Ctypes object <-> pointer conversion.

2011-08-04 Thread Robert Bradshaw
This is getting a bit OT but is worth discussing, so I'm starting a new thread. On Thu, Aug 4, 2011 at 2:51 PM, Greg Ewing wrote: > Dag Sverre Seljebotn wrote: > >>  - One idea is coercion of C pointers to ctypes Python objects and back >> again. > > Some way of requesting this manually might be

Re: [Cython] object to struct conversion

2011-08-04 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 2:09 PM, mark florisson wrote: > On 3 August 2011 19:36, Robert Bradshaw wrote: >> On Wed, Aug 3, 2011 at 9:20 AM, Stefan Behnel wrote: >>> mark florisson, 03.08.2011 16:28: >>>> >>>> Is there any specific reason objects cann

Re: [Cython] Ctypes object <-> pointer conversion.

2011-08-05 Thread Robert Bradshaw
On Thu, Aug 4, 2011 at 11:58 PM, Dag Sverre Seljebotn wrote: > On 08/05/2011 01:31 AM, Robert Bradshaw wrote: >> >> This is getting a bit OT but is worth discussing, so I'm starting a new >> thread. >> >> On Thu, Aug 4, 2011 at 2:51 PM, Greg Ewing >>

Re: [Cython] What now?

2011-08-11 Thread Robert Bradshaw
On Thu, Aug 11, 2011 at 1:45 PM, Stefano wrote: > Thursday 11th August 2011 19:51:14, Dag Sverre Seljebotn wrote: >> Error testcases in tests/errors are currently rather inconvenient, since >> changing anything often shifts a lot of error message line numbers. >> Something like this format might b

Re: [Cython] Vitja's CyFunction branch

2011-08-13 Thread Robert Bradshaw
On Fri, Aug 12, 2011 at 9:41 PM, Vitja Makarov wrote: > 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

Re: [Cython] Cython, Go and static duck typing

2011-08-13 Thread Robert Bradshaw
On Sat, Aug 13, 2011 at 4:09 AM, Dag Sverre Seljebotn wrote: > I read up on Go's interface model last week and am very excited about it. > Perhaps this was old news to a lot of you, but it was new to me. > > This post is mostly just to make sure everybody is aware of prior art here > in case it is

Re: [Cython] Segfault in PyThread_release_lock

2011-08-15 Thread Robert Bradshaw
On Mon, Aug 15, 2011 at 2:33 PM, Dag Sverre Seljebotn wrote: > Would it be horribly expensive to generate a better runtime error, or even > initialize the gil on demand? If the gil is not initialized, get the thread > ID of the thread calling the callback and check against the thread entering > at

Re: [Cython] Segfault in PyThread_release_lock

2011-08-16 Thread Robert Bradshaw
On Tue, Aug 16, 2011 at 3:49 AM, mark florisson wrote: > On 16 August 2011 11:39, mark florisson wrote: >> On 15 August 2011 23:33, Dag Sverre Seljebotn >> wrote: >>> Would it be horribly expensive to generate a better runtime error, or even >>> initialize the gil on demand? If the gil is not in

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

2011-08-16 Thread Robert Bradshaw
On Sun, Aug 14, 2011 at 8:02 AM, Stefan Behnel wrote: > 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 pr

Re: [Cython] [cython-users] Calling gil-requiring function not allowed without gil

2011-08-17 Thread Robert Bradshaw
On Fri, Aug 12, 2011 at 6:13 AM, Dag Sverre Seljebotn wrote: > On 08/12/2011 02:45 PM, Stefan Behnel wrote: >> [second try in moving this discussion to cython-devel] >> >> Dag Sverre Seljebotn, 12.08.2011 08:50: >>> On 08/12/2011 06:44 AM, Robert Bradshaw wrote: >

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-17 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 1:08 AM, Dag Sverre Seljebotn wrote: > On 08/17/2011 09:12 AM, Robert Bradshaw wrote: >> So your proposal is that "with cython.synchronized" has the same >> effect as a Python operation, in that its a compile time error to do >> it while not

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-17 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn wrote: > On 08/17/2011 08:19 PM, Robert Bradshaw wrote: >> >> That's a nice idea. I have to admit that all these special gil >> declarations are a bit messy. I'd also rather introduce clear >> decora

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn wrote: > On 08/17/2011 09:21 PM, Robert Bradshaw wrote: >> >> On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 08/17/2011 08:19 PM, Robert Bradshaw wrote: >>>>

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-18 Thread Robert Bradshaw
On Thu, Aug 18, 2011 at 12:27 PM, Robert Bradshaw wrote: > On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn > wrote: >> On 08/17/2011 09:21 PM, Robert Bradshaw wrote: >>> >>> On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn >>>  wrote: &

Re: [Cython] What now?

2011-08-18 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 10:32 PM, Stefan Behnel wrote: > Stefano, 11.08.2011 16:24: >> >> now that I've nailed Cython code, I'd like to get into something more >> funny. >> Currently, I'm working on a set of macros to seamlessy integrate Cython >> into >> CMake build process (in fact, I love CMake

Re: [Cython] except clause on nogil functions

2011-08-20 Thread Robert Bradshaw
On Sat, Aug 20, 2011 at 2:55 AM, mark florisson wrote: > On 20 August 2011 00:34, mark florisson wrote: >> Hey, >> >> I think I found a rather serious bug: if an error label is used in a >> nogil function, it tries to build a traceback. So if the GIL is >> released you will immediately segfault,

Re: [Cython] Calling gil-requiring function not allowed without gil

2011-08-20 Thread Robert Bradshaw
On Thu, Aug 18, 2011 at 11:35 PM, Dag Sverre Seljebotn wrote: > On 08/18/2011 09:27 PM, Robert Bradshaw wrote: >> >> On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn >>  wrote: >>> >>> On 08/17/2011 09:21 PM, Robert Bradshaw wrote: >>>>

Re: [Cython] pyregr testsuite regression

2011-08-22 Thread 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 better Python > compatibility, which disables the signature optimisation into METH_O & > friend

Re: [Cython] non-virtual methods

2011-08-24 Thread Robert Bradshaw
On Wed, Aug 24, 2011 at 12:00 PM, Vitja Makarov wrote: > 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_activ

Re: [Cython] non-virtual methods

2011-08-24 Thread Robert Bradshaw
On Wed, Aug 24, 2011 at 12:17 PM, Vitja Makarov wrote: > 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 me

Re: [Cython] History of SWIG and applicability to Cython

2011-08-29 Thread Robert Bradshaw
On Mon, Aug 29, 2011 at 7:33 AM, Stefan Behnel wrote: > Hi, > > here's an interesting history wrap-up of SWIG, by its original author. Very interesting thread. > One thing that stroke me when I read this (or rather when I was half-way > through) was that it might be possible to use SWIG as a glu

Re: [Cython] non-virtual methods

2011-08-29 Thread 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/25 Vitja Makarov : >> 2011/8/25 Stefan Behnel : >>> Vitja Makarov, 25.08.2011 20:32: 20

Re: [Cython] non-virtual methods

2011-08-30 Thread 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 Makarov : >>>>> 2011/8/26 Vitja Makarov : >&

Re: [Cython] non-virtual methods

2011-08-30 Thread 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, 2011 at 4:00 AM, Vitja Makarov >>>> wrote:

Re: [Cython] non-virtual methods

2011-08-30 Thread 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.08.2011 18:18: >>>>> >>>>> On

Re: [Cython] ComprehensionNode problem

2011-09-01 Thread 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 [(e for e in t) for t in target] > > Crash in the ticket is related to GeneratorExpressionScope (name is >

<    1   2   3   4   5   6   7   8   >