[Python-Dev] Stable ABI – PEP 667: Consistent views of namespaces

2021-08-24 Thread Petr Viktorin
On 23. 08. 21 5:07, Guido van Rossum wrote: On Sat, Aug 21, 2021 at 8:52 PM Nick Coghlan > wrote: [...] Code that uses PyEval_GetLocals() will NOT continue to operate safely under PEP 667: all such code will raise an exception at runtime, and need to be rew

[Python-Dev] Stable ABI question.

2020-06-30 Thread Inada Naoki
Hi, folks. I found PyEval_AcquireLock and PyEval_ReleaseLock are deprecated since Python 3.2. But the same time, stable ABI is defined in Python 3.2 too. The deprecated APIs are stable ABI too because `ceval.h` is not excluded from the stable ABI PEP. As far as my understanding, we can not remove

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

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

2019-05-06 Thread Jeroen Demeyer
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, unofficially the answer might be "yes". At least, the last time that an i

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