Re: [Cython] bug report

2016-07-20 Thread Stefan Behnel
swapnil jariwala schrieb am 15.07.2016 um 14:11: > trac.cython.org does not open for me, I've come across an error while > trying the tutorial, I've elaborated the same in below question > > http://stackoverflow.com/questions/38386722/how-to-resolve-error-error-compiling-cython-file-error > > any

Re: [Cython] bug report on cython-mode.el: freezes when using which-function-mode

2016-04-24 Thread Jason Madden
> On Apr 24, 2016, at 03:15, Nathaniel Smith wrote: > > I don't know whether the same thing happens with released versions of > emacs. I see the same behaviour with the 24.5 release of emacs (stock python.el + elpy). Turning off which-function-mode seems to solve it (thanks for the tip, BTW).

Re: [Cython] Bug report: compiler traceback instead of error message

2013-07-09 Thread Robert Bradshaw
Yes, we should be giving an error message here rather than crashing; thanks for the report. On Tue, Jul 9, 2013 at 7:36 AM, John Benediktsson wrote: > Hi, > > I had some trouble debugging a traceback that I got from Cython, which ended > up being a simple typo in a .pyx file. Below is a reduced

Re: [Cython] Bug report: enumerate does not accept the "start" argument

2012-05-08 Thread Stefan Behnel
Russell Warren, 08.05.2012 08:25: > Python's built-in function 'enumerate' has a lesser-known 2nd argument that > allows the start value of the enumeration to be set. See the python docs > here: > http://docs.python.org/library/functions.html#enumerate > > Cython 0.16 doesn't like it, and only al

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-20 Thread Lars Buitinck
2011/12/17 mark florisson : > Thanks, that was very helpful. The problem was that generator > functions apparently don't fill out a name in the symbol table. You > can try again from this branch: > https://github.com/markflorisson88/cython/commit/ed648d932f3922f77e140a6292d65f56f4899090 > which wil

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread mark florisson
On 17 December 2011 12:57, Lars Buitinck wrote: > 2011/12/17 mark florisson : >> Thanks for your report, could you paste/attach the code of your >> extension module? > > The code is online at https://github.com/larsmans/sortedcollection > > -- > Lars Buitinck > Scientific programmer, ILPS > Univer

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread Lars Buitinck
2011/12/17 mark florisson : > Thanks for your report, could you paste/attach the code of your > extension module? The code is online at https://github.com/larsmans/sortedcollection -- Lars Buitinck Scientific programmer, ILPS University of Amsterdam __

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread mark florisson
On 17 December 2011 12:40, Lars Buitinck wrote: > 2011/12/17 Lars Buitinck : >> I was trying to build a C++ extension with debugging support as >> described in http://docs.cython.org/src/userguide/debugging.html, but >> I got an error from the Cython compiler: > > Forgot to mention: I was using th

Re: [Cython] Bug report: building an extension with --pyrex-gdb fails

2011-12-17 Thread Lars Buitinck
2011/12/17 Lars Buitinck : > I was trying to build a C++ extension with debugging support as > described in http://docs.cython.org/src/userguide/debugging.html, but > I got an error from the Cython compiler: Forgot to mention: I was using the very latest Git version of Cython, a04c0f4eccc96ad47536

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-24 Thread Stefan Behnel
Vitja Makarov, 24.03.2011 19:15: 2011/3/24 Stefan Behnel: Vitja Makarov, 23.03.2011 20:11: 2011/3/23 Stefan Behnel: Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'Pyr

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-24 Thread Vitja Makarov
2011/3/24 Stefan Behnel : > Vitja Makarov, 23.03.2011 20:11: >> >> 2011/3/23 Stefan Behnel: >>> >>> Vitja Makarov, 23.03.2011 17:25:   File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl     if 'pxd' in s.level: AttributeError: 'Pyrex

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 20:11: 2011/3/23 Stefan Behnel: Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'PyrexScanner' object has no attribute 'level' Yes it does: """

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Vitja Makarov
2011/3/23 Stefan Behnel : > Vitja Makarov, 23.03.2011 17:25: >> >>   File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", >> line 2307, in p_c_arg_decl >>     if 'pxd' in s.level: >> AttributeError: 'PyrexScanner' object has no attribute 'level' > > Yes it does: > > """ > # Cython/Plex/

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 17:25: def f(): return lambda x=0: x f()() Gives me this bogus code at function entry: Py_ssize_t kw_args = PyDict_Size(__pyx_kwds); PyObject* values[1] = {0}; values[0] = ((PyObject *)0); // <<< !!! Looks like the default value is considered an

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Stefan Behnel
Vitja Makarov, 23.03.2011 17:25: File "/home/vitja/tmp/cython-my-git/Cython/Compiler/Parsing.py", line 2307, in p_c_arg_decl if 'pxd' in s.level: AttributeError: 'PyrexScanner' object has no attribute 'level' Yes it does: """ # Cython/Plex/Scanners.pxd cdef class Scanner: [...]

Re: [Cython] Bug report: lambda and numpy.vectorize segfaults

2011-03-23 Thread Vitja Makarov
2011/3/23 René Rex : > Hello > > The attached code creates a segfault with Cython 0.14.1. A workaround > is to use a real function instead of lambda. Using the normal python > interpreter the same code works flawlessly. > > Here are my build commands: > > cython --embed vectorizeBug.pyx > gcc -pthr