Re: [Cython] Minor bug: emitted junk line prevents compilation

2013-03-16 Thread Nikita Nemkin
On Sun, 17 Mar 2013 02:59:12 +0600, Stefan Behnel wrote: In case you are interested in how to hit this line, declare in some .pxd: cdef extern from "Python.h": ctypedef class __builtin__.BaseException [object PyBaseExceptionObject]: pass Why would you need to d

Re: [Cython] Minor bug: emitted junk line prevents compilation

2013-03-16 Thread Stefan Behnel
Nikita Nemkin, 16.03.2013 21:39: > I believe I have found a bit of broken/junk code. > This line produces an unpaired and unnecessary #if directive: > https://github.com/cython/cython/blob/master/Cython/Compiler/ModuleNode.py#L2423 > > The fix is to simply remove it. Yes, it's correctly used furt

[Cython] Minor bug: emitted junk line prevents compilation

2013-03-16 Thread Nikita Nemkin
Hi, I believe I have found a bit of broken/junk code. This line produces an unpaired and unnecessary #if directive: https://github.com/cython/cython/blob/master/Cython/Compiler/ModuleNode.py#L2423 The fix is to simply remove it. In case you are interested in how to hit this line, declare in some

Re: [Cython] Template functions

2013-03-16 Thread Robert Bradshaw
On Sat, Mar 16, 2013 at 10:16 AM, John Tyree wrote: > There is currently a void in Cython's C++ support with respect to function > (not > class) templates. It would be great to have such a thing, dangerous or not, so > I'm proposing something to get things rolling. > > Given that function templat

[Cython] Template functions

2013-03-16 Thread John Tyree
There is currently a void in Cython's C++ support with respect to function (not class) templates. It would be great to have such a thing, dangerous or not, so I'm proposing something to get things rolling. Given that function templates are 100% transparent to the caller, it seems that the only bar