Reputation: 73
I wonder if I can use the latest C2x features in developing a Python extension module, since the CPython itself is written partially in C89 and borrowing some features from C99.
Upvotes: 1
Views: 101
Reputation: 48612
You can do whatever you want in your own module. C as Python uses it works with both C89 compilers (MSVC) and compilers that support more modern standards (literally every other relevant C compiler today). Just don't expect your code to ever be merged into upstream Python if you violate PEP 7 like that.
Upvotes: 2