Re: [Numpy-discussion] Determining NPY_ABI_VERSION statically in compiled extensions

2018-10-08 Thread Robert T. McGibbon
at 5:26 PM Matti Picus wrote: > On 08/10/18 23:31, Robert T. McGibbon wrote: > > Is anyone aware of any tricks that can be played with tools like > > `readelf`, `nm` or `dlopen` / `dlsym` in order to statically determine > > what version of numpy a fully-compiled C extension (

[Numpy-discussion] Determining NPY_ABI_VERSION statically in compiled extensions

2018-10-08 Thread Robert T. McGibbon
Is anyone aware of any tricks that can be played with tools like `readelf`, `nm` or `dlopen` / `dlsym` in order to statically determine what version of numpy a fully-compiled C extension (for example, found inside a wheel) was compiled against? Even if it only worked with relatively new versions of

Re: [Numpy-discussion] Type annotations for NumPy

2017-11-28 Thread Robert T. McGibbon
by no means ready for real users, but I hope this is a useful place to build from. Any feedback or contributions would be appreciated. -Robert On Tue, Nov 28, 2017 at 2:04 PM, Stephan Hoyer wrote: > On Tue, Nov 28, 2017 at 5:11 PM Robert T. McGibbon > wrote: > >> I'm strongl

Re: [Numpy-discussion] Type annotations for NumPy

2017-11-28 Thread Robert T. McGibbon
I'm strongly in support of this proposal. Type annotations have really helped me write more correct code. I started working on numpy type stubs a few months ago. I needed a mypy plugin to support shape-aware functions. Those whole thing is pretty tricky. Still very WIP, but I'll clean them up a l