This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients gvanrossum, lukasz.langa, pablogsal
Date 2019-02-01.17:35:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAP7+vJL+Ca30VciuZf+wnEuWUY=K1AmepdTzh+N7TZsjp50yOA@mail.gmail.com>
In-reply-to <1549041770.94.0.819559735173.issue35879@roundup.psfhosted.org>
Content
OK, let me make a PR, I found another leak for type:ignore.

On Fri, Feb 1, 2019 at 9:22 AM Pablo Galindo Salgado <report@bugs.python.org>
wrote:

>
> Pablo Galindo Salgado <pablogsal@gmail.com> added the comment:
>
> The extra referenced happen here in Python-ast.c :
>
> value = ast2obj_string(o->type_comment);
>     if (!value) goto failed;
>     if (_PyObject_SetAttrId(result, &PyId_type_comment, value) == -1)
>         goto failed;
>     Py_DECREF(value);
>
> ast2obj_string increments it once and the setattr does it again and then
> there is only one Py_DECREF.
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue35879>
> _______________________________________
>
History
Date User Action Args
2019-02-01 17:35:37gvanrossumsetrecipients: + gvanrossum, lukasz.langa, pablogsal
2019-02-01 17:35:35gvanrossumlinkissue35879 messages
2019-02-01 17:35:35gvanrossumcreate