4 ms·
What Every Python Developer Should Know About the CPython ABI
- voidUpdate 3mo ago> import numpy > np.array([1,2]) NameError: name 'np' is not defined I think the article probably wanted "import numpy as np"
- gregdaniels421 3mo agoI mean it was part of a picture, and `import numpy as np` is literally used everywhere. The rest of the article seems generally accurate, and not too AI-y
- ngoldbaum 3mo agoThanks for pointing that out, I’ll fix that.
- 21gafg 3mo ago[dead]
- auntienomen 3mo agoGlad to see that Cython got a shout out here. It's not that widely used, but it's a lovely experience. It uses the CPython ABI to drastically reduce the friction of switching between C & Python.
- whinvik 3mo agoThanks. I heard the word ABI so many times but only finally understood it after reading this blog. On another topic, I also feel like quansight blog is usually a high quality resource for Python related stuff. Usually its more for numpy/scipy kind of stuff, but this one is an example of more general Python related stuff.
- redlimetea 3mo agoAbbligation Brogrammable Inderfase (I have a cold)
- ngoldbaum 3mo agoI’m glad you enjoyed the post. It really helped me to crystallize my understanding. I was also confused about the API/ABI distinction for a long time.