New submission from Eric Cousineau <eric.cousineau@tri.global>:

Motivated by this downstream project issue that I am working on:
https://github.com/RobotLocomotion/drake/issues/13026

In https://bugs.python.org/issue32377, I encountered PEP 442's updated 
resurrection behavior when moving from supporting Python 2 to Python 3.
There, Antoine Pitrou (pitrou) said that using this API (finalized + set 
finalized) could work, but that I could also try recreating the wrapper object. 
I have not yet attempted his suggestion given that (a) wrapping code is nuanced 
(pybind11, inheritance, etc.) and (b) this API has been working for us for the 
past 2 years.

Related to this, I saw some mentions of breakage of Cython due to its usage of 
this API:
https://bugs.python.org/issue35081#msg330045
The breakage was mitigated by keeping this internal API exposed (so kinda 
public, but not really?).

Is it at all possible to considering making some of this public API?

----------
components: C API
messages: 366059
nosy: Eric Cousineau
priority: normal
severity: normal
status: open
title: Expose public spelling of _PyGC_FINALIZED and _PyGC_SET_FINALIZED?
type: enhancement
versions: Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40240>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to