[Python-Dev] Inconsistency of PyModule_AddObject()

Ethan Furman ethan at stoneleaf.us
Thu Apr 28 12:56:36 EDT 2016

On 04/28/2016 08:26 AM, Stefan Krah wrote:
> Random832 writes:

>> A more relevant point would be that _decimal does *not* use the API in a
>> way *which would be broken by the proposed change*, regardless of
>> whether the way in which it uses it is subjectively correct or can cause
>> leaks.
> And the ultimate point is that I don't want to spend about a week per year
> to evaluate the effect of needless code changes on a highly audited module.
> And no, this isn't theoretical...

Considering you have to opt-in to the change, why would this be a big 
deal for you?

Or are you saying you'd rather have the PyModule_AddObject deprecated 
(without removal?), and a new PyWhatever_Whatever to take it's place?


More information about the Python-Dev mailing list