Re: [Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-21 Thread Sebastian Berg
On Tue, 2019-08-20 at 22:30 +0200, Joris Van den Bossche wrote: > Hi Sebastian, > > Thanks for the answer! > > On Mon, 19 Aug 2019 at 17:57, Sebastian Berg < > sebast...@sipsolutions.net> wrote: > > ... > > > > Hmmm, interesting use case. No, I do not think there currently is a > > reasonable wa

Re: [Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-20 Thread Joris Van den Bossche
Hi Sebastian, Thanks for the answer! On Mon, 19 Aug 2019 at 17:57, Sebastian Berg wrote: > ... > > Hmmm, interesting use case. No, I do not think there currently is a > reasonable way to do this (I think there may be ways to hack it). Even > when all access to the objects is safe by itself, you

Re: [Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-19 Thread Sebastian Berg
Hi Joris, On Mon, 2019-08-19 at 17:35 +0200, Joris Van den Bossche wrote: > Hi all, > > PyGEOS (https://github.com/caspervdw/pygeos) is an experimental > package implementing a set of numpy ufuncs to provide vectorized > geometry functionality (wrapping the C++ GEOS library). > > The way it does

[Numpy-discussion] Releasing the GIL in ufuncs dealing with object arrays

2019-08-19 Thread Joris Van den Bossche
Hi all, PyGEOS (https://github.com/caspervdw/pygeos) is an experimental package implementing a set of numpy ufuncs to provide vectorized geometry functionality (wrapping the C++ GEOS library). The way it does this is by implementing a Python extension type (pygeos.Geometry) that wraps an actual G