[Cython] Is a Cython 0.29.33 release around the corner?

2022-11-24 Thread Daniele Nicolodi
Hello, I've seen some activity that may hint toward an upcoming Cython 0.29.33 release. This release will include the depfile support. Meson included native support for compiling Cython code and having support for depfiles would enable it to correclty rebuild the Cython artifacts when any of

[Cython] Most efficient way to create an object with Python C-API

2020-06-16 Thread Daniele Nicolodi
Hello, this is not a question directly related to cython, but I think the readers of this list may have the right expertise to answer it. I am working on a Python extension where I need to instantiate a lot of Decimal objects. I would like to make it as efficient as possible. Unfortunately the C-

Re: [Cython] Preparing the language level change - Re: [cython-users] Cython 0.29 beta 1 released

2018-09-24 Thread Daniele Nicolodi
On 24-09-2018 14:05, Stefan Behnel wrote: > I added a new directive "str_is_str=True" which can be combined with > "language_level=3" to get the desired behaviour. It keeps the 'str' builtin > type as it is (it would otherwise become 'unicode' with level 3) and keeps > unprefixed string literals as

Re: [Cython] [cython-users] Re: New function (pointer) syntax.

2014-11-11 Thread Daniele Nicolodi
On 07/11/14 08:30, Ian Henriksen wrote: > The syntax from Numba is a really good way to do this as well. > It is just as clear and doesn't conflict with C. Strictly speaking, > it isn't Python, but it would be nice to have similarities in the > syntax for the different packages. What would be the

Re: [Cython] [cython-users] Re: New function (pointer) syntax.

2014-11-11 Thread Daniele Nicolodi
On 11/11/14 17:55, Daniele Nicolodi wrote: > On 07/11/14 08:30, Ian Henriksen wrote: >> The syntax from Numba is a really good way to do this as well. >> It is just as clear and doesn't conflict with C. Strictly speaking, >> it isn't Python, but it would be n

Re: [Cython] [PATCH] explain how to compile C++ extensions up to Cython 0.21

2014-10-31 Thread Daniele Nicolodi
On 31/10/14 13:44, Stefan Behnel wrote: > Daniele Nicolodi schrieb am 31.10.2014 um 13:07: >> Thanks for applying the patch. >> I see that you applied it manually and not through git am or similar, >> otherwise my identity would have been recorded in the git metadata and >

Re: [Cython] [PATCH] explain how to compile C++ extensions up to Cython 0.21

2014-10-31 Thread Daniele Nicolodi
On 30/10/14 19:32, Stefan Behnel wrote: > Thanks. > > https://github.com/cython/cython/commit/dba0a5f0e80c676367a2a137ac88d33c5ee0119a Hello Stefan, Thanks for applying the patch. I see that you applied it manually and not through git am or similar, otherwise my identity would have been recorde

[Cython] [PATCH] explain how to compile C++ extensions up to Cython 0.21

2014-10-29 Thread Daniele Nicolodi
--- docs/src/userguide/wrapping_CPlusPlus.rst | 15 +++ 1 file changed, 15 insertions(+) diff --git a/docs/src/userguide/wrapping_CPlusPlus.rst b/docs/src/userguide/wrapping_CPlusPlus.rst index 59c89a1..5119b63 100644 --- a/docs/src/userguide/wrapping_CPlusPlus.rst +++ b/docs/src/use

Re: [Cython] BUG: assignment to typed memoryview

2013-12-04 Thread Daniele Nicolodi
On 04/12/2013 12:55, Sturla Molden wrote: > > On 26 Nov 2013, at 16:18, Daniele Nicolodi wrote: > >> Hello, >> >> I believe there is a bug in how assignment to typed memoryviews is >> handled in the compiler. I think the following code should be vali

[Cython] BUG: assignment to typed memoryview

2013-11-27 Thread Daniele Nicolodi
Hello, I believe there is a bug in how assignment to typed memoryviews is handled in the compiler. I think the following code should be valid code: cdef double[::1] a = np.arange(10, dtype=np.double) cdef double[::1] b = np.empty(a.size // 2) b[:] = a[::2] However, the Cython compiler com