On 15.06.2020 11:02, Petr Viktorin wrote:
> On 2020-06-14 22:10, cpyt...@nicwatson.org wrote:
>> I maintain an open source Python module in C. I'm trying to verify for
>> the first time that the module still works with cpython 3.9. This
>> module does *not* use the "limited" C API.
>>
>> In building my module against 3.9b3, I'm getting a missing declaration
>> warning on _Py_ForgetReference. My module builds and passes test fine,
>> this is just a compiler warning issue.
> 
> What does the _Py_ForgetReference function do? The [documentation] says
> it's only for use in the interpereter core, so I'd assume it's .
> 
> [documentation]: https://docs.python.org/3/c-api/refcounting.html

This is typically used in error handlers of constructors where you
want to avoid having the deallocator run as result of the
DECREF, e.g. because the object has not been full initialized
yet.

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Experts (#1, Jun 15 2020)
>>> Python Projects, Coaching and Support ...    https://www.egenix.com/
>>> Python Product Development ...        https://consulting.egenix.com/
________________________________________________________________________

::: We implement business ideas - efficiently in both time and costs :::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               https://www.egenix.com/company/contact/
                     https://www.malemburg.com/
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/PEFTCHDRJQDATHG5LKUCBA6PTS3HOHJP/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to