Re: [Cython] [cython-users] Re: Python 3 and string frustration

2013-02-13 Thread Stefan Behnel
Robert Bradshaw, 14.02.2013 06:51: > I've proposed having a compiler > directive that lets you specify an encoding (e.g. ascii, utf8) and > automatically endodes/decodes when converting between C and Python > strings. My main objection against that is that it would only work in one direction, from

Re: [Cython] Two generators in one function

2013-02-13 Thread David Roe
Thanks. David On Wed, Feb 13, 2013 at 10:29 PM, Robert Bradshaw wrote: > This is due to the archaic --disable-function-redefinition flag. > > On Mon, Feb 4, 2013 at 4:28 PM, David Roe wrote: > > Hi everyone, > > I ran into the following problem using Cython 0.17.4 (current version of > > Sage).

Re: [Cython] Two generators in one function

2013-02-13 Thread Robert Bradshaw
This is due to the archaic --disable-function-redefinition flag. On Mon, Feb 4, 2013 at 4:28 PM, David Roe wrote: > Hi everyone, > I ran into the following problem using Cython 0.17.4 (current version of > Sage). > > If you try to compile a file with the following function in it: > > def test_dou

Re: [Cython] Possible bug when using cython -Wextra

2013-02-13 Thread Robert Bradshaw
On Thu, Feb 7, 2013 at 10:05 AM, Stefan Behnel wrote: > Samuele Kaplun, 07.02.2013 13:00: >> In data giovedì 7 febbraio 2013 12:11:47, Stefan Behnel ha scritto: [...] def test(): cdef int i for i from 0 <= i < 10: print "foo" [...] >>> >

Re: [Cython] SIGSEGV in __Pyx_CyFunction_traverse

2013-02-13 Thread Robert Bradshaw
Thanks. On Tue, Feb 5, 2013 at 11:56 AM, J Robert Ray wrote: > I was getting a crash during module init of a cython module if a garbage > collection happens between a call to __Pyx_CyFunction_InitDefaults and the > code to populate the defaults. > > The attached patch fixes the crash. This bug af

[Cython] cldoc

2013-02-13 Thread Dag Sverre Seljebotn
Just a heads up about this project; there's bound to be something useful there for auto-wrapping. http://jessevdk.github.com/cldoc/ Dag Sverre ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Fused types don't work with cdef classes?

2013-02-13 Thread Stefan Behnel
Dave Hirschfeld, 13.02.2013 09:16: > Robert Bradshaw writes: >> Yes, this is a bug; there is a bad interaction between fused types and >> special methods. >> >> I created http://trac.cython.org/cython_trac/ticket/802 >> > > Thanks for following up. My actual use-case was to allow either 1D or 2D >

Re: [Cython] Fused types don't work with cdef classes?

2013-02-13 Thread Dave Hirschfeld
Robert Bradshaw writes: > > Yes, this is a bug; there is a bad interaction between fused types and > special methods. > > I created http://trac.cython.org/cython_trac/ticket/802 > Thanks for following up. My actual use-case was to allow either 1D or 2D MemoryView inputs to a function by simpl

Re: [Cython] Fused types don't work with cdef classes?

2013-02-13 Thread Robert Bradshaw
Yes, this is a bug; there is a bad interaction between fused types and special methods. I created http://trac.cython.org/cython_trac/ticket/802 On Fri, Feb 8, 2013 at 8:54 AM, Dave Hirschfeld wrote: > Is this a bug? > The following code fails to compile on windows VS2012, 32bit Python2.7 with a