What Every Python Developer Should Know About the CPython ABI

(labs.quansight.org)

73 points | by matt_d 7 days ago ago

6 comments

  • whinvik 3 days ago 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 3 days ago ago

      Abbligation Brogrammable Inderfase

      (I have a cold)

  • voidUpdate 4 days ago ago

    > import numpy

    > np.array([1,2])

    NameError: name 'np' is not defined

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

    • gregdaniels421 4 days ago 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 4 days ago 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 4 days ago ago

    [dead]