Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-17 Thread Robert Bradshaw
Forgot reply-all... didin't we have this discussion before about making that the default for this list as it is by-far the most common desired behavior? On Thu, Feb 17, 2011 at 3:53 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Feb 17, 2011 at 3:12 PM, W. Trevor King wk

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-19 Thread Robert Bradshaw
On Sat, Feb 19, 2011 at 11:35 AM, W. Trevor King wk...@drexel.edu wrote: On Thu, Feb 17, 2011 at 03:53:13PM -0800, Robert Bradshaw wrote: On Thu, Feb 17, 2011 at 3:12 PM, W. Trevor King wk...@drexel.edu wrote: * Extending class cdef/cdpef/public/readonly handling to cover enums,  stucts

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-19 Thread Robert Bradshaw
On Sat, Feb 19, 2011 at 1:06 PM, W. Trevor King wk...@drexel.edu wrote: So should I go ahead and update the expected error messages in my branch? Yes. ___ cython-devel mailing list cython-devel@python.org

Re: [Cython] (was: Cython .pxd introspection: listing defined constants)

2011-02-24 Thread Robert Bradshaw
On Thu, Feb 24, 2011 at 5:42 PM, W. Trevor King wk...@drexel.edu wrote: W. Trevor King, 22.02.2011 18:55: I've been working on a more explicit parser that removes the ambiguity behind the various visibilities.  This will help me ensure proper impolementation of my cdef-ed enums/structs/...,

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 3:48 AM, W. Trevor King wk...@drexel.edu wrote: On Fri, Feb 25, 2011 at 11:11:03PM -0800, Robert Bradshaw wrote: On Tue, Feb 22, 2011 at 12:02 PM, W. Trevor King wk...@drexel.edu wrote: An easy, if uglier, workaround would be to prepend attributes with the class name

Re: [Cython] Expected errors of tests/errors/cdef_members_T517.pxd

2011-02-26 Thread Robert Bradshaw
On Sat, Feb 26, 2011 at 5:08 AM, W. Trevor King wk...@drexel.edu wrote: I'm splitting Symtab visibilities into explicit C and Python visibilities, but am having trouble reproducing the expected error messages for cdef_members_T517:    $ python runtests.py cdef_members_T517    Python 2.6.6

Re: [Cython] [cython-users] Cython .pxd introspection: listing defined constants

2011-03-02 Thread Robert Bradshaw
On Wed, Mar 2, 2011 at 5:54 PM, W. Trevor King wk...@drexel.edu wrote: Previous discussions in this thread [1,2] have discussed the issues associated with overloading the 'public' keyword.  For an example of the difficulties this causes, see the ugly workaround [3] in my recent commit [4].  

Re: [Cython] strange bug in starred target

2011-03-03 Thread Robert Bradshaw
On Thu, Mar 3, 2011 at 11:44 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/3/3 Vitja Makarov vitja.maka...@gmail.com: 2011/3/3 Vitja Makarov vitja.maka...@gmail.com: This doesn't work: def assign():    a, *b = 1,2,3,4,5    return a, b import x x.assign() Traceback (most recent

Re: [Cython] Differing Cython-0.14.1.tar.gz files

2011-03-07 Thread Robert Bradshaw
On Sun, Mar 6, 2011 at 10:54 PM, Stefan Behnel stefan...@behnel.de wrote: Ryan Schmidt, 06.03.2011 23:12: There are two different files called Cython-0.14.1.tar.gz -- one in http://www.cython.org/release/ and a different one in  http://pypi.python.org/packages/source/C/Cython/: Intersting.

Re: [Cython] Out of order side effects of argument evaluation in function calls (ticket #654)

2011-03-16 Thread Robert Bradshaw
On Wed, Mar 16, 2011 at 7:53 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 11.03.2011 19:33: On Fri, Mar 11, 2011 at 9:36 AM, Stefan Behnelstefan...@behnel.de  wrote: Stefan Behnel, 11.03.2011 15:08: Vitja Makarov, 11.03.2011 15:04: 2011/3/11 Stefan Behnel: Personally

Re: [Cython] Out of order side effects of argument evaluation in function calls (ticket #654)

2011-03-17 Thread Robert Bradshaw
On Thu, Mar 17, 2011 at 6:15 AM, Jason Grout jason-s...@creativetrax.com wrote: On 3/16/11 11:05 PM, Robert Bradshaw wrote: On Wed, Mar 16, 2011 at 7:53 AM, Stefan Behnelstefan...@behnel.de  wrote: I'm actually leaning towards not guaranteeing the order of execution if C doesn't do

Re: [Cython] Message system refactoring

2011-03-21 Thread Robert Bradshaw
On Mon, Mar 21, 2011 at 3:51 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 03/21/2011 11:45 AM, Vitja Makarov wrote: Now error/warning messages are stored in global variables at Cython.Compiler.Errors I think it's much better to move error handling into some object,

Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-22 Thread Robert Bradshaw
On Mon, Mar 21, 2011 at 11:10 PM, Stefan Behnel stefan...@behnel.de wrote: Hi, there seems to be quite some interest in a project to get parts of CPython and specifically its stdlib rewritten in Cython. I've copied the latest python-dev mail below. The relevant part of the thread is here:

Re: [Cython] Rewriting/compiling parts of CPython's stdlib in Cython

2011-03-24 Thread Robert Bradshaw
On Thu, Mar 24, 2011 at 12:58 PM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 24.03.2011 20:18: On Thu, Mar 24, 2011 at 10:42 AM, Stefan Behnel wrote: Stefan Behnel, 22.03.2011 08:59: Robert Bradshaw, 22.03.2011 08:14: On Mon, Mar 21, 2011 at 11:10 PM, Stefan Behnel wrote

Re: [Cython] Bug in cython-mode.el under GNU Emacs 23.2.1

2011-03-24 Thread Robert Bradshaw
On Wed, Mar 23, 2011 at 3:48 PM, Lisandro Dalcin dalc...@gmail.com wrote: On 22 March 2011 02:21, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/3/22 Rafe Kettler rafe.kett...@gmail.com: I've just tried out cython-mode.el and I was a bit disappointed when it didn't work right off the bat.

Re: [Cython] CEP: prange for parallel loops

2011-04-04 Thread Robert Bradshaw
On Mon, Apr 4, 2011 at 6:04 AM, Stefan Behnel stefan...@behnel.de wrote: Dag Sverre Seljebotn, 04.04.2011 13:53: On 04/04/2011 01:23 PM, Stefan Behnel wrote: Dag Sverre Seljebotn, 04.04.2011 12:17: CEP up at http://wiki.cython.org/enhancements/prange Variable handling Rather than

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread Robert Bradshaw
On Tue, Apr 5, 2011 at 3:51 AM, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 04.04.2011 21:26: For clarity, I'll add an example: def f(np.ndarray[double] x, double alpha):     cdef double s = 0     cdef double tmp = 2     cdef double other = 6.6     with nogil:         for i

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread Robert Bradshaw
On Tue, Apr 5, 2011 at 5:55 AM, Pauli Virtanen p...@iki.fi wrote: Mon, 04 Apr 2011 21:26:34 +0200, mark florisson wrote: [clip] For clarity, I'll add an example: [clip] How about making all the special declarations explicit? The automatic inference of variables has a problem in that a small

Re: [Cython] CEP: prange for parallel loops

2011-04-05 Thread Robert Bradshaw
On Tue, Apr 5, 2011 at 8:02 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/05/2011 04:58 PM, Dag Sverre Seljebotn wrote: On 04/05/2011 04:53 PM, Robert Bradshaw wrote: On Tue, Apr 5, 2011 at 3:51 AM, Stefan Behnelstefan...@behnel.de  wrote: mark florisson, 04.04.2011 21

Re: [Cython] Cython paper in Computing in Science Engineering

2011-04-06 Thread Robert Bradshaw
On Wed, Apr 6, 2011 at 4:40 PM, Zak Stone zst...@gmail.com wrote: Researchers: Please consider citing this paper if Cython helps your research in non-trivial ways. Is this the canonical citation reference for Cython now?  If so, can this be mentioned on the Cython webpage somewhere that is

Re: [Cython] GSoC Proposal - Reimplement C modules in CPython's standard library in Cython.

2011-04-08 Thread Robert Bradshaw
On Fri, Apr 8, 2011 at 10:31 AM, Arthur de Souza Ribeiro arthurdesribe...@gmail.com wrote: 2011/4/8 Robert Bradshaw rober...@math.washington.edu Looking better. I would add some details about how you plan to compare/profile your new implementations, and also at least add a note

Re: [Cython] Test runner

2011-04-12 Thread Robert Bradshaw
On Mon, Apr 11, 2011 at 3:56 AM, mark florisson markflorisso...@gmail.com wrote: On 11 April 2011 12:53, mark florisson markflorisso...@gmail.com wrote: On 11 April 2011 12:45, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 11.04.2011 12:26: Can we select tests in the tests

Re: [Cython] cython-docs repository

2011-04-12 Thread Robert Bradshaw
On Sat, Apr 9, 2011 at 10:13 AM, Jason Grout jason-s...@creativetrax.com wrote: On 4/9/11 12:02 PM, Robert Bradshaw wrote: Yep, we did that during the workshop. I thought I had sent out an announcement, but I guess not. Is there a summary anywhere of the exciting things that happened

Re: [Cython] GSoC Proposal - Reimplement C modules in CPython's standard library in Cython.

2011-04-12 Thread Robert Bradshaw
On Tue, Apr 12, 2011 at 11:22 AM, Stefan Behnel stefan...@behnel.de wrote: Arthur de Souza Ribeiro, 12.04.2011 14:59: Hi Stefan, yes, I'm working on this, in fact I'm trying to recompile json module (http://docs.python.org/library/json.html) adding some type definitions and cython things o

Re: [Cython] Test runner

2011-04-13 Thread Robert Bradshaw
On Wed, Apr 13, 2011 at 4:07 AM, mark florisson markflorisso...@gmail.com wrote: Another, different but related issue: how can we get useful output from the test runner? e.g. I'm running my test with a '@cython.test_assert_path_exists(...)' and I get this error output:

Re: [Cython] speed.pypy.org

2011-04-16 Thread Robert Bradshaw
On Sat, Apr 16, 2011 at 1:20 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 16.04.2011 08:53: On Fri, Apr 15, 2011 at 1:20 PM, Stefan Behnel wrote: Stefan Behnel, 11.04.2011 15:08: I'm currently discussing with Maciej Fijalkowski (PyPy) how to get Cython running

Re: [Cython] speed.pypy.org

2011-04-26 Thread Robert Bradshaw
On Tue, Apr 26, 2011 at 7:50 AM, Stefan Behnel stefan...@behnel.de wrote: Stefan Behnel, 15.04.2011 22:20: Stefan Behnel, 11.04.2011 15:08: I'm currently discussing with Maciej Fijalkowski (PyPy) how to get Cython running on speed.pypy.org (that's what I wrote cythonrun for). If it works

Re: [Cython] prange CEP updated

2011-04-26 Thread Robert Bradshaw
On Tue, Apr 26, 2011 at 7:25 AM, mark florisson markflorisso...@gmail.com wrote: On 21 April 2011 20:13, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/21/2011 10:37 AM, Robert Bradshaw wrote: On Mon, Apr 18, 2011 at 7:51 AM, mark florisson markflorisso...@gmail.com  wrote

Re: [Cython] Fused Types

2011-04-28 Thread Robert Bradshaw
On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 28.04.2011 23:29: On 28 April 2011 22:31, mark florisson wrote: On 28 April 2011 22:12, Robert Bradshaw wrote: On Thu, Apr 28, 2011 at 12:48 PM, mark florisson wrote: So I fixed all that, but I'm

Re: [Cython] Fused Types

2011-04-30 Thread Robert Bradshaw
On Fri, Apr 29, 2011 at 8:04 AM, mark florisson markflorisso...@gmail.com wrote: On 29 April 2011 06:32, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnel stefan...@behnel.de wrote: mark florisson, 28.04.2011 23:29: On 28 April 2011 22:31, mark

Re: [Cython] Fused Types

2011-04-30 Thread Robert Bradshaw
the real_t complex syntax? Shooting from the sidelines, one more generic solution might be, e.g., I'm sorry, I'm not sure what syntax you are referring to. Are you talking about actual complex numbers? This: On 28 April 2011 23:30, Robert Bradshaw rober...@math.washington.edu wrote: OK, I

Re: [Cython] Fused Types

2011-04-30 Thread Robert Bradshaw
On Sat, Apr 30, 2011 at 12:51 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 04/30/2011 08:39 AM, Robert Bradshaw wrote: On Fri, Apr 29, 2011 at 3:53 AM, mark florisson markflorisso...@gmail.com  wrote: On 29 April 2011 12:28, Pauli Virtanenp...@iki.fi  wrote: No, just

Re: [Cython] Fused Types

2011-04-30 Thread Robert Bradshaw
On Sat, Apr 30, 2011 at 7:24 AM, Stefan Behnel stefan...@behnel.de wrote: Robert Bradshaw, 29.04.2011 06:32: On Thu, Apr 28, 2011 at 7:09 PM, Stefan Behnelstefan...@behnel.de  wrote: mark florisson, 28.04.2011 23:29: On 28 April 2011 22:31, mark florisson wrote: On 28 April 2011 22:12

Re: [Cython] Fused Types

2011-05-02 Thread Robert Bradshaw
On Mon, May 2, 2011 at 1:56 PM, mark florisson markflorisso...@gmail.com wrote: On 2 May 2011 18:24, Robert Bradshaw rober...@math.washington.edu wrote: On Sun, May 1, 2011 at 2:38 AM, mark florisson markflorisso...@gmail.com wrote: A remaining issue which I'm not quite certain about

[Cython] Fwd: automatic character conversion problem

2011-05-02 Thread Robert Bradshaw
Dear Cython developers, Recently I encountered a problem with Cython's automatic char* to string conversion (Cython version 0.14.1). I'll attach two sample source files. The first one, char2str_a.pyx prints The quick..., just as I expected. But the second example prints ... lazy dog.. In the

Re: [Cython] Fused Types

2011-05-03 Thread Robert Bradshaw
On Tue, May 3, 2011 at 12:59 AM, mark florisson markflorisso...@gmail.com wrote: On 3 May 2011 00:21, Robert Bradshaw rober...@math.washington.edu wrote: On Mon, May 2, 2011 at 1:56 PM, mark florisson markflorisso...@gmail.com wrote: On 2 May 2011 18:24, Robert Bradshaw rober

Re: [Cython] Fused Types

2011-05-03 Thread Robert Bradshaw
On Tue, May 3, 2011 at 10:06 AM, mark florisson markflorisso...@gmail.com wrote: On 3 May 2011 18:00, Robert Bradshaw rober...@math.washington.edu wrote: floating is implicitly available, we could require making it explicit. How would we make it explicit. Require the parameterization, i.e

Re: [Cython] Fused Types

2011-05-03 Thread Robert Bradshaw
On Tue, May 3, 2011 at 12:59 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 05/03/2011 08:19 PM, Robert Bradshaw wrote: Btw we shouldn't count on pruning for the design of this, I think this will for a large part be used with def functions. And if you use a cdef function from

Re: [Cython] nonecheck directive

2011-05-20 Thread Robert Bradshaw
On Fri, May 20, 2011 at 8:13 AM, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] nonecheck directive

2011-05-21 Thread Robert Bradshaw
On Fri, May 20, 2011 at 10:57 PM, Stefan Behnel stefan...@behnel.de 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 rather be a I know what I'm doing option that allows

Re: [Cython] local variable handling in generators

2011-05-23 Thread Robert Bradshaw
On Mon, May 23, 2011 at 2:57 AM, Stefan Behnel stefan...@behnel.de 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 explicitly

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

2011-05-25 Thread Robert Bradshaw
On Wed, May 25, 2011 at 12:37 PM, jpe reply+i-954759-90be1c778e144f2c17b3665667d3d62b01062...@reply.github.com 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

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 stefan...@behnel.de 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 methods (and perhaps functions) with more optimized C

Re: [Cython] Broken tests

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 6:16 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/5/27 Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no: On 05/27/2011 02:41 PM, Vitja Makarov wrote: 2011/5/27 Stefan Behnelstefan...@behnel.de: Hi, could we please make it a requirement to run the complete

Re: [Cython] Control Flow

2011-05-27 Thread Robert Bradshaw
On Fri, May 27, 2011 at 7:27 AM, Vitja Makarov vitja.maka...@gmail.com 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)

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 1:15 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/5/28 Robert Bradshaw rober...@math.washington.edu: On Fri, May 27, 2011 at 3:32 PM, Stefan Behnel stefan...@behnel.de wrote: Hi, I recently stumbled over a tradeoff question with AttributeError, and now found

Re: [Cython] Redundant Cython exception message strings

2011-05-28 Thread Robert Bradshaw
On Sat, May 28, 2011 at 2:37 AM, Stefan Behnel stefan...@behnel.de 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 situation for UnboundLocalError

[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

Re: [Cython] Bindings performance issue

2011-06-02 Thread Robert Bradshaw
On Thu, Jun 2, 2011 at 3:04 PM, mark florisson markflorisso...@gmail.com wrote: On 2 June 2011 23:59, Robert Bradshaw rober...@math.washington.edu wrote: On Thu, Jun 2, 2011 at 2:45 PM, mark florisson markflorisso...@gmail.com wrote: On 2 June 2011 23:34, Robert Bradshaw rober

Re: [Cython] Header file bug

2011-06-08 Thread Robert Bradshaw
I agree. On Wed, Jun 8, 2011 at 9:47 AM, sshan...@stwing.upenn.edu wrote: Yeah, I think just erroring would be perfectly reasonable. -Seth Quoting Greg Ewing greg.ew...@canterbury.ac.nz: Seth Shannin wrote: I would still make the case that currently something is a bit off in that the

Re: [Cython] Header file bug

2011-06-09 Thread Robert Bradshaw
public fairly hard 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,  sshan...@stwing.upenn.edu wrote: Yeah, I think just erroring would be perfectly reasonable. -Seth Quoting Greg Ewing greg.ew

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 dalc...@gmail.com wrote: On 14 June 2011 16:20, Nathaniel Smith n...@pobox.com 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

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 stefan...@behnel.de 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

Re: [Cython] Hudson is down?

2011-07-05 Thread Robert Bradshaw
On Mon, Jul 4, 2011 at 9:12 PM, Stefan Behnel stefan...@behnel.de 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 vitja.maka...@gmail.com wrote: I tried to speedup runtests with ccache How to run: CYTHON_RUNTESTS_CCACHE=ccache python  runtests.py Running

Re: [Cython] Speedup hudson job with ccache

2011-07-07 Thread Robert Bradshaw
On Wed, Jul 6, 2011 at 11:54 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/7 Stefan Behnel stefan...@behnel.de 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. It'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 stefan...@behnel.de 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

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 greg.ew...@canterbury.ac.nz 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

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 jmccampb...@enthought.com 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.  

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 vitja.maka...@gmail.com wrote: 2011/7/18 Robert Bradshaw rober...@math.washington.edu: 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

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 l.j.buiti...@uva.nl 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

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 dalc...@gmail.com wrote: On 19 July 2011 02:24, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/18 Robert Bradshaw rober...@math.washington.edu: Trevor King and I discussed this quite a while back, but every time I got around to looking

[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.

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

2011-07-20 Thread Robert Bradshaw
2011 15:32, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 20:04, Lisandro Dalcin dalc...@gmail.com wrote: On 20 July 2011 13:51, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 18:06, Lisandro Dalcin dalc...@gmail.com wrote: On 19 July 2011 20:48, Robert Bradshaw

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 markflorisso...@gmail.com wrote: On 20 July 2011 23:24, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Jul 20, 2011 at 12:53 PM, mark florisson markflorisso...@gmail.com wrote: On 20 July 2011 21:44, Lisandro Dalcin dalc...@gmail.com

Re: [Cython] Cython 0.15 release

2011-07-20 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 2:47 AM, Stefan Behnel stefan...@behnel.de 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 for a release, and this week would

Re: [Cython] Strange cimport behaviour

2011-07-20 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 9:27 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/16 Lars Buitinck l.j.buiti...@uva.nl: 2011/7/15 Vitja Makarov vitja.maka...@gmail.com: I've found strange bug. In my example cimport misses fcntl.h include: ((c2f2e12...))

Re: [Cython] Strange cimport behaviour

2011-07-21 Thread Robert Bradshaw
On Wed, Jul 20, 2011 at 10:30 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Jul 20, 2011 at 9:40 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/21 Robert Bradshaw rober...@math.washington.edu: On Wed, Jul 20, 2011 at 9:27 PM, Vitja Makarov vitja.maka...@gmail.com

Re: [Cython] runtests libgomp fail

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 14, 2011 at 4:24 AM, mark florisson markflorisso...@gmail.com 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

Re: [Cython] PEP 3135 -- New Super

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 7, 2011 at 2:13 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/8 mark florisson markflorisso...@gmail.com On 7 July 2011 22:39, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/8 mark florisson markflorisso...@gmail.com On 7 July 2011 22:15, Vitja Makarov

Re: [Cython] Strange cimport behaviour

2011-07-21 Thread Robert Bradshaw
On Thu, Jul 21, 2011 at 2:28 AM, Lars Buitinck l.j.buiti...@uva.nl wrote: 2011/7/21 Robert Bradshaw rober...@math.washington.edu: On Wed, Jul 20, 2011 at 10:30 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Wed, Jul 20, 2011 at 9:40 PM, Vitja Makarov vitja.maka...@gmail.com wrote

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] Utility Codes and templates

2011-07-22 Thread Robert Bradshaw
On Fri, Jul 22, 2011 at 1:39 PM, mark florisson markflorisso...@gmail.com wrote: On 22 July 2011 22:05, Robert Bradshaw rober...@math.washington.edu wrote: On Fri, Jul 22, 2011 at 3:12 AM, mark florisson markflorisso...@gmail.com wrote: For my work on the _memview branch (and also on fused

Re: [Cython] Utility Codes and templates

2011-07-25 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 3:07 AM, mark florisson markflorisso...@gmail.com wrote: On 25 July 2011 12:00, Stefan Behnel stefan...@behnel.de wrote: Vitja Makarov, 25.07.2011 10:25: 2011/7/25 Stefan Behnelstefan...@behnel.de: Vitja Makarov, 25.07.2011 08:41: 2011/7/23 Robert

Re: [Cython] Utility Codes and templates

2011-07-26 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 11:39 PM, Stefan Behnel stefan...@behnel.de 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 objection to the ini-style header (with requirements and other metadata

Re: [Cython] Utility Codes and templates

2011-07-26 Thread Robert Bradshaw
On Mon, Jul 25, 2011 at 11:50 PM, Stefan Behnel stefan...@behnel.de 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 and .so). Some things like generator

Re: [Cython] Cython 0.15 release candidate

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

Re: [Cython] Cython 0.15 release candidate

2011-07-29 Thread Robert Bradshaw
On Fri, Jul 29, 2011 at 11:24 AM, mark florisson markflorisso...@gmail.com wrote: On 29 July 2011 20:06, Robert Bradshaw rober...@math.washington.edu wrote: On Fri, Jul 29, 2011 at 1:33 AM, mark florisson markflorisso...@gmail.com wrote: On 25 July 2011 08:03, Arfrever Frehtes Taifersar

Re: [Cython] Vitja's CyFunction branch

2011-07-30 Thread Robert Bradshaw
On Sat, Jul 30, 2011 at 7:20 AM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no 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

Re: [Cython] Cython 0.15 release

2011-07-31 Thread Robert Bradshaw
On Sat, Jul 30, 2011 at 11:35 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/20 Robert Bradshaw rober...@math.washington.edu: 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

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 arfrever@gmail.com 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

Re: [Cython] Cython 0.15 release candidate

2011-07-31 Thread Robert Bradshaw
On Thu, Jul 21, 2011 at 4:14 PM, Robert Bradshaw rober...@math.washington.edu 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

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 arfrever@gmail.com wrote: 2011-07-31 09:45:15 Robert Bradshaw napisał(a): On Thu, Jul 21, 2011 at 4:14 PM, Robert Bradshaw rober...@math.washington.edu wrote: Cython has seen an enormous amount of development since 0.14.1

Re: [Cython] Willing to contribute

2011-08-03 Thread Robert Bradshaw
On Wed, Aug 3, 2011 at 1:53 PM, Stefano stefano.k.sanfili...@gmail.com 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

[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 greg.ew...@canterbury.ac.nz wrote: Dag Sverre Seljebotn wrote:  - One idea is coercion of C pointers to ctypes Python objects and back again. Some way of requesting

Re: [Cython] Vitja's CyFunction branch

2011-08-13 Thread Robert Bradshaw
On Fri, Aug 12, 2011 at 9:41 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/7/30 Stefan Behnel stefan...@behnel.de: 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

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 d.s.seljeb...@astro.uio.no 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

Re: [Cython] Segfault in PyThread_release_lock

2011-08-16 Thread Robert Bradshaw
On Tue, Aug 16, 2011 at 3:49 AM, mark florisson markflorisso...@gmail.com wrote: On 16 August 2011 11:39, mark florisson markflorisso...@gmail.com wrote: On 15 August 2011 23:33, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: Would it be horribly expensive to generate a better runtime

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

2011-08-17 Thread Robert Bradshaw
On Sun, Aug 14, 2011 at 8:02 AM, Stefan Behnel stefan...@behnel.de 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

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 d.s.seljeb...@astro.uio.no 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: On Thu, Aug 11

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 rober...@math.washington.edu wrote: On Wed, Aug 17, 2011 at 11:39 PM, Dag Sverre Seljebotn d.s.seljeb...@astro.uio.no wrote: On 08/17/2011 09:21 PM, Robert Bradshaw wrote: On Wed, Aug 17, 2011 at 11:46 AM, Dag Sverre Seljebotn d.s.seljeb

Re: [Cython] What now?

2011-08-18 Thread Robert Bradshaw
On Wed, Aug 17, 2011 at 10:32 PM, Stefan Behnel stefan...@behnel.de 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

Re: [Cython] except clause on nogil functions

2011-08-20 Thread Robert Bradshaw
On Sat, Aug 20, 2011 at 2:55 AM, mark florisson markflorisso...@gmail.com wrote: On 20 August 2011 00:34, mark florisson markflorisso...@gmail.com 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

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 stefan...@behnel.de 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

Re: [Cython] non-virtual methods

2011-08-29 Thread Robert Bradshaw
On Sun, Aug 28, 2011 at 4:00 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/8/27 Vitja Makarov vitja.maka...@gmail.com: 2011/8/27 Vitja Makarov vitja.maka...@gmail.com: 2011/8/26 Vitja Makarov vitja.maka...@gmail.com: 2011/8/25 Vitja Makarov vitja.maka...@gmail.com: 2011/8/25 Vitja

Re: [Cython] non-virtual methods

2011-08-30 Thread Robert Bradshaw
On Mon, Aug 29, 2011 at 10:57 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/8/30 Robert Bradshaw rober...@math.washington.edu: On Sun, Aug 28, 2011 at 4:00 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/8/27 Vitja Makarov vitja.maka...@gmail.com: 2011/8/27 Vitja Makarov

Re: [Cython] non-virtual methods

2011-08-30 Thread Robert Bradshaw
On Tue, Aug 30, 2011 at 9:14 AM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/8/30 Robert Bradshaw rober...@math.washington.edu: On Mon, Aug 29, 2011 at 10:57 PM, Vitja Makarov vitja.maka...@gmail.com wrote: 2011/8/30 Robert Bradshaw rober...@math.washington.edu: On Sun, Aug 28, 2011

Re: [Cython] ComprehensionNode problem

2011-09-01 Thread Robert Bradshaw
On Sun, Aug 28, 2011 at 1:19 PM, Vitja Makarov vitja.maka...@gmail.com 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

  1   2   3   4   5   6   >