Message284131
Sorry, but perhaps I don't fully understand you.
It is legitimately to just define Py_LIMITED_API without requiring specific version:
#define Py_LIMITED_API
In that case you can use the stable API of the version 3.2, but can't use PyType_FromSpecWithBases() and PyModule_AddFunctions(), because they are correctly attributed as API of versions 3.3 and 3.5. You can also mistakenly use PyImport_ImportModuleLevelObject() added in 3.5, this is a matter of this issue. But you shouldn't.
The problem is that the warning should be emitted only for users that use incorrect API. But it shouldn't be emitted for users that use just 3.2 API (perhaps the code was written at the time of 3.2 and was not changed since). |
|
Date |
User |
Action |
Args |
2016-12-27 19:59:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, python-dev, eric.snow, steve.dower |
2016-12-27 19:59:32 | serhiy.storchaka | set | messageid: <1482868772.25.0.219598746217.issue29058@psf.upfronthosting.co.za> |
2016-12-27 19:59:32 | serhiy.storchaka | link | issue29058 messages |
2016-12-27 19:59:31 | serhiy.storchaka | create | |
|