Groups
Conversations
All groups and messages
Send feedback to Google
Help
Sign in
Groups
cython-users
Conversations
About
cython-users
1–30 of 4052
Mark all as read
Report abusive group
0 selected
Adam Li
, …
Stefan Behnel
3
May 18
How to? Shuffling a vector of integers in Cython without requiring the GIL
Adam Li schrieb am 13.05.22 um 22:14: > from libcpp.algorithm cimport random_shuffle > ... >
unread,
How to? Shuffling a vector of integers in Cython without requiring the GIL
Adam Li schrieb am 13.05.22 um 22:14: > from libcpp.algorithm cimport random_shuffle > ... >
May 18
Adam Li
,
da-woods
6
May 16
Using cdef extern to get std::algorithm c++ functionality into Cython
Hmm... It doesn't work, but I suspect it might be because swap is not thread safe(?) According to
unread,
Using cdef extern to get std::algorithm c++ functionality into Cython
Hmm... It doesn't work, but I suspect it might be because swap is not thread safe(?) According to
May 16
ajfr...@gmail.com
2
May 15
Docs or examples of exposing Cython functions so other Cython projects can cimport?
For future reference, we got this working for our project in these PRs: https://github.com/uber/h3-py
unread,
Docs or examples of exposing Cython functions so other Cython projects can cimport?
For future reference, we got this working for our project in these PRs: https://github.com/uber/h3-py
May 15
Hugo Macdermott-Opeskin
May 15
Passing through dependent types
Hi all, I am trying to wrap the following which takes a templated class as an input. ``` template
unread,
Passing through dependent types
Hi all, I am trying to wrap the following which takes a templated class as an input. ``` template
May 15
David Poensgen
, …
Stefan Behnel
13
May 13
Sharing cython functions between modules: how to make it work (with a bit of project structure)
To anyone who comes across this in the future: One potential pitfall, as I just realized, has to do
unread,
Sharing cython functions between modules: how to make it work (with a bit of project structure)
To anyone who comes across this in the future: One potential pitfall, as I just realized, has to do
May 13
David Poensgen
,
Golden Rockefeller
3
May 10
openMP compiler flags: how to handle multiplatform case / unknown compiler
Hi, thanks for the suggestion, I am currently looking into that. But I am not sure I understand how
unread,
openMP compiler flags: how to handle multiplatform case / unknown compiler
Hi, thanks for the suggestion, I am currently looking into that. But I am not sure I understand how
May 10
Yun
,
Stefan Behnel
3
May 5
Best practices for importing pure python style modules
Thanks for taking the time to explain the how to reference cython modules from other ones. Here are
unread,
Best practices for importing pure python style modules
Thanks for taking the time to explain the how to reference cython modules from other ones. Here are
May 5
walt3k
,
da-woods
7
May 2
Cython traceback does not work even with the most trivial example!?
Ok, gotcha. Thanks again for all the help, Walt. On Sunday, May 1, 2022 at 4:31:45 PM UTC-5 D Woods
unread,
Cython traceback does not work even with the most trivial example!?
Ok, gotcha. Thanks again for all the help, Walt. On Sunday, May 1, 2022 at 4:31:45 PM UTC-5 D Woods
May 2
Fabio Zadrozny
, …
walt3k
6
Apr 26
Extracting AST from Cython files.
Thanks a bunch! On Monday, April 25, 2022 at 2:01:28 AM UTC-5 D Woods wrote: I'm not Fabio, but:
unread,
Extracting AST from Cython files.
Thanks a bunch! On Monday, April 25, 2022 at 2:01:28 AM UTC-5 D Woods wrote: I'm not Fabio, but:
Apr 26
Edward Sr
,
Stefan Behnel
3
Apr 24
How to let multiple Cython modules share a single global (static) C variable of a static library
On Wed, Apr 20, 2022 at 4:04 PM Stefan Behnel <stefan_ml@behnel.de> wrote: Hi, Edward Sr
unread,
How to let multiple Cython modules share a single global (static) C variable of a static library
On Wed, Apr 20, 2022 at 4:04 PM Stefan Behnel <stefan_ml@behnel.de> wrote: Hi, Edward Sr
Apr 24
Yun
, …
da-woods
4
Apr 24
Pure python mode support for parameterized types
Thanks for the responses, they've helped quite a bit! As a follow-up from the first example: cdef
unread,
Pure python mode support for parameterized types
Thanks for the responses, they've helped quite a bit! As a follow-up from the first example: cdef
Apr 24
Vasilis Stamelos
,
da-woods
4
Apr 22
cython producing error-prone code in __pyx_import_star_set with C macros
Right - I can reproduce it with a pxd file: cdef extern from *: int SOME_MACRO and a pyx file: from
unread,
cython producing error-prone code in __pyx_import_star_set with C macros
Right - I can reproduce it with a pxd file: cdef extern from *: int SOME_MACRO and a pyx file: from
Apr 22
Corbin Foucart
Apr 21
How to build a Cython extension using CMake
Hello everyone, I'm new to Cython, and I have the following problem: I have a very complicated
unread,
How to build a Cython extension using CMake
Hello everyone, I'm new to Cython, and I have the following problem: I have a very complicated
Apr 21
xy l
,
da-woods
2
Apr 19
Can I comment out enum __pyx_check_sizeof_voidp?
> I am not sure that there will be some bad effect after I change SIZEOF_VOID_P to 8. So can I
unread,
Can I comment out enum __pyx_check_sizeof_voidp?
> I am not sure that there will be some bad effect after I change SIZEOF_VOID_P to 8. So can I
Apr 19
Potato
,
da-woods
5
Apr 18
lambda callable in nogil block
The first part is what I have done, with the added fused types. I guess I should have provided some
unread,
lambda callable in nogil block
The first part is what I have done, with the added fused types. I guess I should have provided some
Apr 18
Jessie van Schijndel
,
Stefan Behnel
2
Apr 15
Extending np array using Cython with dictionary of np arrays as input
Hi, Jessie van Schijndel schrieb am 11.04.22 um 16:22: > I am trying to create a class which
unread,
Extending np array using Cython with dictionary of np arrays as input
Hi, Jessie van Schijndel schrieb am 11.04.22 um 16:22: > I am trying to create a class which
Apr 15
Robert Luce
,
Stefan Behnel
3
Apr 10
Deallocating deeply nested data structure results in stack overflow
Thanks for the pointer, that nails it! Robert Stefan Behnel schrieb am Sonntag, 10. April 2022 um 19:
unread,
Deallocating deeply nested data structure results in stack overflow
Thanks for the pointer, that nails it! Robert Stefan Behnel schrieb am Sonntag, 10. April 2022 um 19:
Apr 10
Stefan Behnel
,
Francesc Alted
2
Apr 4
The Cython compiler is 20 years old today !
Hi Stefan. Pyrex, and then Cython, came to be a game changer for the increasing plethora of
unread,
The Cython compiler is 20 years old today !
Hi Stefan. Pyrex, and then Cython, came to be a game changer for the increasing plethora of
Apr 4
Gaël
2
Mar 31
Is method overload generally supported?
Ahhhh, I found a few bug reports dating from a few years back... It's another instance of the
unread,
Is method overload generally supported?
Ahhhh, I found a few bug reports dating from a few years back... It's another instance of the
Mar 31
Source
Mar 31
Bug(?) with pointer to cdef class method of different types with except *
So I've written a basic system that checks a map for string input and calls a function pointer
unread,
Bug(?) with pointer to cdef class method of different types with except *
So I've written a basic system that checks a map for string input and calls a function pointer
Mar 31
jbrock...@gmail.com
, …
Stefan Behnel
4
Mar 30
Any perf bump from delaying cdef declaratios/allocatios?
jbrock...@gmail.com schrieb am 25.03.22 um 16:28: > eg in the status quo: > > ``` > cdef
unread,
Any perf bump from delaying cdef declaratios/allocatios?
jbrock...@gmail.com schrieb am 25.03.22 um 16:28: > eg in the status quo: > > ``` > cdef
Mar 30
Source
3
Mar 29
Cythonizing and cimporting modules in sub-directories on Windows and Linux (Error)
Sorry, forgot to mention that the __init__.pxd thing seemed to have been solved somehow, maybe by
unread,
Cythonizing and cimporting modules in sub-directories on Windows and Linux (Error)
Sorry, forgot to mention that the __init__.pxd thing seemed to have been solved somehow, maybe by
Mar 29
Ilhan Polat
2
Mar 27
Complex square root function csqrt
For future visitors, the following works in a notebook for the npymath access %%cython -a -f #
unread,
Complex square root function csqrt
For future visitors, the following works in a notebook for the npymath access %%cython -a -f #
Mar 27
walt3k
,
Stefan Behnel
15
Mar 22
AttributeError: 'builtin_function_or_method' object has no attribute '__globals__'
More information I think I probably should have shared in my last post - apologies. I am assuming how
unread,
AttributeError: 'builtin_function_or_method' object has no attribute '__globals__'
More information I think I probably should have shared in my last post - apologies. I am assuming how
Mar 22
jbrock...@gmail.com
, …
da-woods
7
Mar 22
Return tuple of memviews as struct
> Request for clarification. Outside the context of this particular > problem, I sometimes look
unread,
Return tuple of memviews as struct
> Request for clarification. Outside the context of this particular > problem, I sometimes look
Mar 22
Thomas Gardiner
Mar 21
Help Wrapping Multiple Class / Struct functions
Hi Folks, I'm running into a problem that I can't seem to solve. I have some C-code that I
unread,
Help Wrapping Multiple Class / Struct functions
Hi Folks, I'm running into a problem that I can't seem to solve. I have some C-code that I
Mar 21
walt3k
,
Stefan Behnel
3
Mar 18
When looking at traceback of caught exception, fourth arg missing in
It was. Thanks for the idea/workaround! Walt. On Thursday, March 17, 2022 at 2:19:18 AM UTC-5 Stefan
unread,
When looking at traceback of caught exception, fourth arg missing in
It was. Thanks for the idea/workaround! Walt. On Thursday, March 17, 2022 at 2:19:18 AM UTC-5 Stefan
Mar 18
Adam Li
,
da-woods
7
Mar 17
Storing an array of numbers within a struct AND getting a numpy dtype from the struct
Ah I see that's a nice workaround! Thanks da-woods. Summary: I think I see a way forward then now
unread,
Storing an array of numbers within a struct AND getting a numpy dtype from the struct
Ah I see that's a nice workaround! Thanks da-woods. Summary: I think I see a way forward then now
Mar 17
Craig de Stigter
,
da-woods
2
Mar 7
Wrapping a `const void *` with the buffer interface without copying
I'm a bit puzzled because the cast to <char*> should do it (and does when I check myself
unread,
Wrapping a `const void *` with the buffer interface without copying
I'm a bit puzzled because the cast to <char*> should do it (and does when I check myself
Mar 7
Julianus Pfeuffer
, …
Craig de Stigter
4
Mar 4
Wrap nested enum class
Hi! Unfortunately I took the same or a similar route than you. I am creating a hidden _MyEnum python
unread,
Wrap nested enum class
Hi! Unfortunately I took the same or a similar route than you. I am creating a hidden _MyEnum python
Mar 4