What Every Python Developer Should Know About the CPython ABI

(labs.quansight.org)

64 points | by matt_d 4 days ago

4 comments

  • whinvik 10 hours ago
    Thanks. 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 6 hours ago
      Abbligation Brogrammable Inderfase

      (I have a cold)

  • voidUpdate 12 hours ago
    > import numpy

    > np.array([1,2])

    NameError: name 'np' is not defined

    I think the article probably wanted "import numpy as np"

    • gregdaniels421 11 hours ago
      I 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
  • auntienomen 11 hours ago
    Glad 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.
  • 21gafg 12 hours ago
    [dead]