# Pre-PEP: Unified slot system for the C API

**URL:** <https://discuss.python.org/t/pre-pep-unified-slot-system-for-the-c-api/78873>\
**Category:** Ideas\
**Tags:** c-api\
**Created:** [January 30, 2025, 4:04pm UTC](https://discuss.python.org/t/pre-pep-unified-slot-system-for-the-c-api/78873 "2025-01-30T16:04:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![pitrou](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/pitrou/32/28_2.png) [@pitrou](https://discuss.python.org/u/pitrou)\
**Post date:** [June 12, 2025, 7:58am UTC](https://discuss.python.org/t/pre-pep-unified-slot-system-for-the-c-api/78873/6 "2025-06-12T07:58:37Z")

</div>

I got the following version to work on both C11 and C++89 to C++20:

> <https://gist.github.com/pitrou/cbf866afc5092a6be86ee67473ee399b>

(I think C++11 is a reasonable minimal requirement, though)

---

_[View the full topic](https://discuss.python.org/t/pre-pep-unified-slot-system-for-the-c-api/78873)._
