[Python-Dev] Restricted API versioning (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Sat Jun 23 23:41:19 CEST 2012


On Sat, 23 Jun 2012 23:31:07 +0200 "Martin v. Löwis" <martin at v.loewis.de> wrote:

I've been thinking about extensions to the stable ABI. On the one hand, introducing new API can cause extension modules not to run on older Python versions. On the other hand, the new API may well be stable in itself, i.e. remain available for all coming 3.x versions.

As a compromise, I propose that such API can be added, but extension authors must explicitly opt into using it. To define their desired target Python versions, they need to set PyLIMITEDAPI to the hexversion of the first Python release they want to support.

Perhaps something more user-friendly than the hexversion?

Regards

Antoine.



More information about the Python-Dev mailing list