Title: Automatic Reference Counting in Python C Extensions: The PyScoped Pattern
Open Graph Title: Automatic Reference Counting in Python C Extensions: The PyScoped Pattern
Description: Reference counting makes Python C extensions leak or crash on a single missed call. The PyScoped pattern hands the bookkeeping to the compiler’s cleanup attribute.
Open Graph Description: Reference counting makes Python C extensions leak or crash on a single missed call. The PyScoped pattern hands the bookkeeping to the compiler’s cleanup attribute.
Opengraph URL: https://monicz.dev/automatic-reference-counting-python-c-extensions.html
Generator: pandoc
Domain: monicz.dev
{"@context":"https://schema.org","@type":"BlogPosting","author":{"@id":"https://monicz.dev/#person","@type":"Person","name":"Kamil Monicz","url":"https://monicz.dev/"},"datePublished":"2025-07-09","description":"Reference counting makes Python C extensions leak or crash on a single missed call. The PyScoped pattern hands the bookkeeping to the compiler’s cleanup attribute.","headline":"Automatic Reference Counting in Python C Extensions: The PyScoped Pattern","image":"https://monicz.dev/assets/og.jpg","inLanguage":"en","mainEntityOfPage":"https://monicz.dev/automatic-reference-counting-python-c-extensions.html","url":"https://monicz.dev/automatic-reference-counting-python-c-extensions.html"}
| author | Kamil Monicz |
| dcterms.date | 2025-07-09 |
| og:type | article |
| og:site_name | Kamil Monicz |
| og:locale | en_US |
| og:image | https://monicz.dev/assets/og.jpg |
| og:image:width | 1200 |
| og:image:height | 630 |
| article:published_time | 2025-07-09 |
| twitter:card | summary_large_image |
| twitter:creator | @monicz |
Links:
Viewport: width=device-width, initial-scale=1.0, user-scalable=yes