Re: [Cython] NumPy C API Status?

2016-02-02 Thread Robert Bradshaw
On Tue, Feb 2, 2016 at 10:43 AM, Marvin Ritter wrote: > Ok, I can update the numpy/__init__.pxd to match the new API and create a > pull request for it. How do we want to handle the deprecated methods and > types? 1.7 not only added new stuff it also changed return values and type > names. If we r

Re: [Cython] NumPy C API Status?

2016-02-02 Thread Marvin Ritter
Ok, I can update the numpy/__init__.pxd to match the new API and create a pull request for it. How do we want to handle the deprecated methods and types? 1.7 not only added new stuff it also changed return values and type names. If we remove old names user will be forced to update their code. Other

Re: [Cython] NumPy C API Status?

2016-02-02 Thread Robert Bradshaw
On Mon, Feb 1, 2016 at 3:22 PM, Marvin Ritter wrote: > Hi, > > I have to use the NumPy C API for my current project and it seems that > Cython 0.23.4 it only shipping definitions for on all version of the API. > But I need some of the newer methods. > > What are your plans on updating? Is there an

[Cython] NumPy C API Status?

2016-02-02 Thread Marvin Ritter
Hi, I have to use the NumPy C API for my current project and it seems that Cython 0.23.4 it only shipping definitions for on all version of the API. But I need some of the newer methods. What are your plans on updating? Is there anything that prevents you? And if not, how complicated is it? Could

Re: [Cython] C++ structs, namespace, and auto-conversion of struct to dict

2016-02-02 Thread Kevin Thornton
Great--thanks! On Tue, Feb 2, 2016 at 12:56 AM Robert Bradshaw wrote: > On Mon, Feb 1, 2016 at 5:03 PM, Kevin Thornton wrote: > > Hi, > > > > I recently ran into an issue where I found that Cython will not generate > > code to auto-convert structs do dicts if the struct is declared in a C++ > >

Re: [Cython] C++ structs, namespace, and auto-conversion of struct to dict

2016-02-02 Thread Robert Bradshaw
On Mon, Feb 1, 2016 at 5:03 PM, Kevin Thornton wrote: > Hi, > > I recently ran into an issue where I found that Cython will not generate > code to auto-convert structs do dicts if the struct is declared in a C++ > namespace. > > The issue has also been discussed here: > http://stackoverflow.com/qu

Re: [Cython] Cython 0.23.4: Crash with Template Stuff

2016-02-02 Thread Robert Bradshaw
+1 to a better error message. Pull requests accepted :). As for actually implementing this feature, the pull request has been bogged down in trying to accept expressions and types in exactly the right places. (It's messy because one needs both Fizzle[bubble*] and Fizzle[bubble*bubble] to parse...