Re: [Python-Dev] Stable ABI or not for PyTypeObject?

2019-05-06 Thread Victor Stinner
PyType_FromSpec() looks like a better approach for ABI compatibility. My notes on types and ABI: https://pythoncapi.readthedocs.io/type_object.html Victor Le lun. 6 mai 2019 à 09:57, Jeroen Demeyer a écrit : > > Hello, > > I have a simple question for which there doesn't seem to be a good > answ

Re: [Python-Dev] Stable ABI or not for PyTypeObject?

2019-05-06 Thread Antoine Pitrou
On Mon, 6 May 2019 15:55:03 +0200 Jeroen Demeyer wrote: > Hello, > > I have a simple question for which there doesn't seem to be a good > answer: is the layout of PyTypeObject considered to be part of the > stable ABI? > > Officially, the answer is certainly "no" (see PEP 384). > > However, u

Re: [Python-Dev] Stable ABI

2018-06-05 Thread Brett Cannon
I know Kushal set up ABI testing for Fedora and has brought up taking the work he did for that and bringing it over to CPython, but I also know he is offline for personal reasons ATM and won't be able to to reply for a little while. On Mon, 4 Jun 2018 at 08:06 Eric Snow wrote: > I've pointed out

Re: [Python-Dev] Stable ABI

2018-06-04 Thread Eric Snow
I've pointed out in bpo-21142 the similar script I added last year to track C globals: https://github.com/python/cpython/tree/master/Tools/c-globals -eric On Mon, Jun 4, 2018 at 1:17 AM, Ronald Oussoren wrote: > > > On 4 Jun 2018, at 08:35, Ronald Oussoren wrote: > > > > On 3 Jun 2018, at 17

Re: [Python-Dev] Stable ABI

2018-06-04 Thread Ronald Oussoren
> On 3 Jun 2018, at 17:04, Eric V. Smith wrote: > > On 6/3/2018 10:55 AM, Christian Tismer wrote: >> On 03.06.18 13:18, Ronald Oussoren wrote: >>> >>> On 3 Jun 2018, at 12:03, Christian Tismer wrote: >> ... I have written a script that scans all relevant header files and

Re: [Python-Dev] Stable ABI

2018-06-04 Thread Ronald Oussoren
> On 4 Jun 2018, at 08:35, Ronald Oussoren wrote: > > > >> On 3 Jun 2018, at 17:04, Eric V. Smith > > wrote: >> >> On 6/3/2018 10:55 AM, Christian Tismer wrote: >>> On 03.06.18 13:18, Ronald Oussoren wrote: > On 3 Jun 2018, at 12:03, Christian Tisme

Re: [Python-Dev] Stable ABI

2018-06-03 Thread Eric V. Smith
On 6/3/2018 10:55 AM, Christian Tismer wrote: On 03.06.18 13:18, Ronald Oussoren wrote: On 3 Jun 2018, at 12:03, Christian Tismer wrote: ... I have written a script that scans all relevant header files and analyses all sections which are reachable in the limited API context. All macros t

Re: [Python-Dev] Stable ABI

2018-06-03 Thread Christian Tismer
On 03.06.18 13:18, Ronald Oussoren wrote: > > >> On 3 Jun 2018, at 12:03, Christian Tismer wrote: ... >> >> I have written a script that scans all relevant header files >> and analyses all sections which are reachable in the limited API >> context. >> All macros that don't begin with an undersc

Re: [Python-Dev] Stable ABI

2018-06-03 Thread Ronald Oussoren
> On 3 Jun 2018, at 12:03, Christian Tismer wrote: > > On 02.06.18 05:47, Nick Coghlan wrote: >> On 2 June 2018 at 03:45, Jeroen Demeyer > > wrote: >> >>On 2018-06-01 17:18, Nathaniel Smith wrote: >> >>Unfortunately, very few people use the stable ABI cu

Re: [Python-Dev] Stable ABI

2018-06-03 Thread Christian Tismer
On 02.06.18 05:47, Nick Coghlan wrote: > On 2 June 2018 at 03:45, Jeroen Demeyer > wrote: > > On 2018-06-01 17:18, Nathaniel Smith wrote: > > Unfortunately, very few people use the stable ABI currently, so it's > easy for things like this to get mis

Re: [Python-Dev] Stable ABI

2018-06-01 Thread Nick Coghlan
On 2 June 2018 at 03:45, Jeroen Demeyer wrote: > On 2018-06-01 17:18, Nathaniel Smith wrote: > >> Unfortunately, very few people use the stable ABI currently, so it's >> easy for things like this to get missed. >> > > So there are no tests for the stable ABI in Python? > Unfortunately not. http

Re: [Python-Dev] Stable ABI

2018-06-01 Thread Jeroen Demeyer
On 2018-06-01 17:18, Nathaniel Smith wrote: Unfortunately, very few people use the stable ABI currently, so it's easy for things like this to get missed. So there are no tests for the stable ABI in Python? ___ Python-Dev mailing list Python-Dev@pytho