The pythoncapi-compat project can be used to write a C extension supporting a wide range of Python versions with a single code base.
By chatting or signing in you agree to the Terms and chat-message logging (revocable in History).